On Mon, 2010-05-24 at 09:40, Quincey Koziol wrote: > Note, if you write 'int' on your 64 bit > > system and the values are small enough to fit into 32 bit, I am not sure > > if HDF5 will handle reading it into an 'int' on your 32 bit system or > > not. I think it will but I am not sure. You could explicitly attempt to > > read it into long int or long long or int64 if your system supports > > those types AND they are indeed 64 bit. > > Yes, the conversion will work, but your values may be truncated.
So, on this point, I just wanted to make sure I understand. Will HDF5 silently and without error convert a dataset consisting of 64 bit ints to 32 bit ints if all values are within range of the destination type? If just one value is out of range, will it fail the WHOLE read or just truncate that one value and if latter, what kind of error, if any, is triggered? Mark -- Mark C. Miller, Lawrence Livermore National Laboratory ================!!LLNL BUSINESS ONLY!!================ [email protected] urgent: [email protected] T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-851 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
