[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave 64-bit for Windows can't parse long hex integers
From: |
Francesco Potortì |
Subject: |
Octave 64-bit for Windows can't parse long hex integers |
Date: |
Wed, 13 Apr 2016 14:37:40 +0200 |
On Octave 4.0.1 64-bit compiled for Windows, downloaded today from
<http://www.tatsuromatsuoka.com/octave/Eng/Win/>, there seems to be a
bug when Octave parses long hex literals. This is what I observe, is
this really a bug or am I missing something?
On Debian:
>> printf("%x\n", 123456789000)
1cbe991a08
>> format long; 0x1cbe991a08
ans = 123456789000
On Windows:
>> printf("%x\n", 123456789000)
1cbe991a08
>> format long; 0x1cbe991a08
ans = 4294967295
In practice, when parsing a hex literal bigger than 2^32-1, octave reads
it as 0xffffffff.
--
Francesco Potortì (ricercatore) Voice: +39.050.621.3058
ISTI - Area della ricerca CNR Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa Skype: wnlabisti
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it
- Octave 64-bit for Windows can't parse long hex integers,
Francesco Potortì <=