Internal error 200502052 on qword conversion
Original Reporter info from Mantis: koda
-
Reporter name:
Original Reporter info from Mantis: koda
- Reporter name:
Description:
hello, this snipped of code compiles fine on stable fpc, but later versions throw the reported internal error
cWindSpeedf:= cWindSpeed.QWordValue / _1.QWordValue;
(here is the full file http://code.google.com/p/hedgewars/source/browse/hedgewars/uTeams.pas?spec=svn486da687d76ae886aa2c489ef375d22e4bf50051&r=486da687d76ae886aa2c489ef375d22e4bf50051 line 273)
cWindSpeedf is a float, while cWindSpeed is hwFloat, which is an integer data type for floating point operations (http://code.google.com/p/hedgewars/source/browse/hedgewars/uFloat.pas)
the hwFloat and .QworldValue are used a lot in the code and never gave problems like this, however we noticed that by wrapping the value in a function call (even a dummy one that doesn't do any operation on it) the error is not triggered.
Mantis conversion info:
- Mantis ID: 17714
- OS: iPhoneOS
- OS Build: 3.1.2
- Platform: iPod Touch 1G
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 16255 (#3aea9b13)