Tags: msoucy/dproto
Tags
fixes issue #115 and also pre-existing bug with sint64 and sint32; in… …corporates idea from @redstar in pull #130 for backward compatibility with older dmd Root cause of 115 is that the used base data type for reading an integer is always `ulong`. Converting a (huge) value to a signed, possible shorter data type results in the onversion exception. Solution is to use the correct type. This eliminates almost all calls to the `std.conv.to` function. For sint32/sint64, this was related to an overload never being called because of dmd overload resolution rules regarding const vs mutable
PreviousNext