Closed wkliao closed 9 months ago
When compiling with C flag '-fsanitize=undefined', a runtime error may appear with messages like below.
runtime error: left shift of 1618607871 by 8 places cannot be represented in type 'int'
This issue was reported in NetCDF repo, issue #2796. The fix in PR #2800 appears to be able to resolve it.
Looks like it is necessary to use unsigned int when doing byte swap.
When compiling with C flag '-fsanitize=undefined', a runtime error may appear with messages like below.
This issue was reported in NetCDF repo, issue #2796. The fix in PR #2800 appears to be able to resolve it.
Looks like it is necessary to use unsigned int when doing byte swap.