[freetds] casts and warnings
Christos Zoulas
christos at zoulas.com
Thu Mar 10 08:53:09 EST 2005
On Mar 10, 1:18pm, Frediano.Ziglio at vodafone.com ("ZIGLIO, Frediano, VF-IT") wrote:
-- Subject: RE: [freetds] casts and warnings
| Happily gcc under HP-UX give me this warning. Perhaps a better way is to
| define a macro like TDS_ISSPACE (already defined in some C file) to
| handle this case. This can cause a buffer reading underflow with
| undefined behavior (core or bad results). If I remember under Linux the
| "array" is defined from -128 to 255 to handle signed chars correctly.
You are going to have to do this for all the is*() macros, but yes, that
would save you typing a few characters each time you use it.
christos
More information about the FreeTDS
mailing list