dworkin / dgd

Dworkin's Game Driver, an object-oriented database management system originally used to run MUDs.
https://www.dworkin.nl/dgd/
GNU Affero General Public License v3.0
103 stars 31 forks source link

Float::atof() accepted any character after 'e' #42

Closed nyankers closed 3 years ago

nyankers commented 3 years ago

Possible fix for #41

dworkin commented 3 years ago

The fix is good, but the same change is needed in src/host/simfloat.cpp. Could you please fix that one, as well?

nyankers commented 3 years ago

Sure, though while testing, I found that simfloat.cpp (at least on my machine) has some other outstanding issues already. I'll open a new issue for it though, because after this at least (float) "42ea" will not create an unusual number. :)

nyankers commented 3 years ago

Both of these are done, the new issue is #43 and the change has been committed to simfloat.cpp. Thanks!