diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-08-12 14:38:30 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-08-12 14:38:30 (GMT) |
commit | f32d49916d41592a790219e0869a3dbc5e1b49f3 (patch) | |
tree | 4832dc99c516a8ef11329bc8973f0bae8dffd2a0 /release_docs | |
parent | 14f8f4d4370a70afc4c354d0d4b2c6358fa4acf4 (diff) | |
download | hdf5-f32d49916d41592a790219e0869a3dbc5e1b49f3.zip hdf5-f32d49916d41592a790219e0869a3dbc5e1b49f3.tar.gz hdf5-f32d49916d41592a790219e0869a3dbc5e1b49f3.tar.bz2 |
[svn-r21220] The original code
i_mask = ~((unsigned)~0 << (precision[0] + offset[0])) & ((unsigned)~0 << offset[0]);
in line 3680 left shifted a 32-bit integer for 32-bit. The result is undefined by C language. A user
discovered it using clang compiler with -fcatch-undefined-behavior option (see Issue 7674
in Jira). So I changed it in a funny way to avoid it.
Tested on jam, koala, and heiwa.
Diffstat (limited to 'release_docs')
0 files changed, 0 insertions, 0 deletions