-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
f44e91a
commit e8cc943
Showing
1 changed file
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters