eccodes icon indicating copy to clipboard operation
eccodes copied to clipboard

grib_lex: use atoll for unsigned 32bit value

Open mtasaka opened this issue 2 years ago • 0 comments

On 32 bit system, unsigned 32 bit value cannot be read with atol. Use atoll and cast the result to long.

The proposal patch fixes the following test failure on linux 32 bit:

# 193 - eccodes_t_grib_to_netcdf

Forwarded from: https://jira.ecmwf.int/browse/SUP-3560

mtasaka avatar Jan 10 '22 08:01 mtasaka