Re: Nokia n900 and Euphoria
- Posted by mattlewis (admin) May 25, 2011
- 5205 views
SDPringle said...
I'd say it is an alignment issue. Is string_ptr a multiple of 4? If it comes from a file, probably not. You can't just say to the (ARM) procesor there is a floating point number at string_ptr unless string_ptr is a 4-byte aligned address. You can use memcpy to put it into a float declared in the function and then convert it to double.
Ah, yes, I'd forgotten about the alignment issue. That makes sense.
Matt