1. structures// testing new library

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

new topic     » topic index » view message » categorize

2. Re: structures// testing new library

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu