negative values can only be represented by floating point

Bug #939600 reported by cpb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libECBUFR
New
High
cpb

Bug Description

In a nutshell, the "missing" value for INT32 and INT64 types is -1 (see bufr_missing_int()). This means that while someone could create a BufrValue with an INT32 type (*cough* bufr_set_key_qualifier_int32() *cough*), they'll be silently burned if they ever want assign a legitimate -1 to that value.

It would be far better if BUFR conventions were followed and "extreme" datatype-appropriate values like INT_MIN or INT_MAX were used to represent "missing" rather than a single integral "magic" number like -1 which conflicts with legitimate BUFR values.

Revision history for this message
cpb (chris-beauregard) wrote :

r235 is a hint as to what I was trying to accomplish when I found this problem...

Changed in libecbufr:
milestone: none → 0.8.5
Changed in libecbufr:
milestone: 0.8.5 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.