[freetds] CS_INT size bug
norbert at linuxnetworks.de
Tue Sep 5 04:06:14 EDT 2006
On Monday 04 September 2006 23:25, freetds-request at lists.ibiblio.org wrote:
> > It's not that I want to make assumptions about types but printf forces me
> > to do so. Your example above works as long as it doesn't hit a plattform
> > where "long" is defined as 64 bit type (e.g. Alpha, AIX). On these
> > plattforms, it will fail miserably.
> Err, no, it works just fine on Alpha where I just tested it, and I see
> no reason why it shouldn't work on any other platform with 64-bit longs.
> Can you explain why you think it should "fail miserably?" If so,
> perhaps I can help you see where you're going wrong.
I assume, you've used gcc which probably don't define long to 64 bit. Maybe
it's only a problem when using the native plattform compiler - but who does
On the other hand, did you get warnings in -Wall -pedantic mode?
OpenPGP public key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20060905/b75cae04/attachment.bin
More information about the FreeTDS