[Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64 bits

Rafael Guerra jrafaelbguerra at hotmail.com
Sun May 4 18:46:07 CEST 2014


According to the Scilab 5.5.0 release notes, this seems to be a bug fix:

#8862 - mget and mput could not read and write 64 bit data from binary
files.

 

(the C data type "long long integer" has 8 bytes as per Scilab 5.5.0)

 

Rgds

Rafael G.

 

From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Rafael
Guerra
Sent: Sunday, May 04, 2014 12:38 PM
To: 'International users mailing list for Scilab.'
Subject: [Scilab-users] Binary I/O of Integers on Scilab 5.5.0 Windows 64
bits

 

Hello,

 

Is the following change of mput/mget data types "ib" and "lb" have been
reported for Scilab 5.5.0 (Win 64 bits)?

 

 

fid = mopen("mput_lb.dat", 'wb', 0);
mput(16,'lb',fid);
mclose(fid)
// outputs now long long integer with 8 bytes
 
fid = mopen("mput_ib.dat", 'wb', 0);
mput(16,'ib',fid); 
mclose(fid)
// outputs now long integer with 4 bytes

 

 

In Scilab 5.4.1 (Win 64 bits), "lb" words had 4-bytes only, if I am not
mistaken.

 

Thanks and regards

Rafael G.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140504/47d08bac/attachment.htm>


More information about the users mailing list