Re: 64bit math ,, CChris ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:
> 
> 
> So i did this:
> 
> }}}
<eucode>
> word w1, w2, w3, w4, w5
> 
> w1 = atom_to_word(16777216)
> w2 = atom_to_word(65536)
> w3 = mul_word(w1,w2)
> w4 = atom_to_word(12)
> w5 = add_word(w3,w4)
> 
> ? w5
> </eucode>
{{{

> 
> And this happened:
> 
> C:\euphoria\64bit math\kattest.1.exw:10
> type_check failure, w3 is {{0,0,0,0,0,0,0},{0,0,0,0,256,0,0},1}
> 
> 
> How is that possible? i defined w3 as a word, and the function returns a word,
> right?
> 
> Kat

Looks like a bug, will check tonight (it's 2:35pm here) from home, where I have
this code available.

Thanks for the report.

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu