NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
integer conversion resulted in a change of sign static const ncbyte ncBad_byte = NC_FILL_BYTE; In the archives of 20030217, Russ said this was an error in PG versions < 4.0. However, I am getting it with version 6.0. So, I dug around the netcdf source, and I'm still confused. in netcdf.h (showing line numbers) 65 #define NC_FILL_BYTE ((signed char)-127) and in ncvalues.h (showing line numbers) 18 typedef unsigned char ncbyte; ... 35 static const ncbyte ncBad_byte = NC_FILL_BYTE; It seems there is indeed an issue with signed versus unsigned char. Am I missing something? And in the meantime, how safe am I to redefine NC_FILL_BYTE to ((unsigned char)0) ? I realize g++ works, but I want to use the PG profiler with my software that links to libnetcdf_c++. rorik -- Rorik Peterson Univ. Alaska, Fairbanks ============================================================================== To unsubscribe netcdfgroup, visit: http://www.unidata.ucar.edu/mailing-list-delete-form.html ==============================================================================
netcdfgroup
archives: