1. structures// testing new library
- Posted by _tom (admin) Nov 01, 2016
- 1349 views
Testing the latest structures library gives me
Euphoria Interpreter v4.1.0 development 64-bit Linux, Using System Memory Revision Date: 2015-02-02 14:18:53, Id: 5861:57179171dbed s2[1] = A string, s2[2] = 12, s2[3] = 25.0
I expect s2[3] should return 25.2 rather than 25.0
_tom
Edit: fixed formatting. -Greg
2. Re: structures// testing new library
- Posted by jmduro Nov 02, 2016
- 1284 views
I had many bugs:
- first was to use different structures for allocating, then reading and writing. That is corrected by using a variable to store the structure definition.
- second was more difficult: 25.2 has code #9A99C941 in memory: poke_float stored it as #9A000000. I had to understand I must use poke(p, atom_to_float32(a)) instead of poke4(p, atom_to_float32(a)).
I upload the corrected software with a brand new library as soon as possible.
Jean-Marc