Skip to Content.
Sympa Menu

freetds - RE: [freetds] tds_money_to_string conversion oddity

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tds_money_to_string conversion oddity
  • Date: Mon, 8 Dec 2003 10:17:53 -0500

> From: Craig A. Berry [mailto:craigberry AT mac.com]
> Sent: December 7, 2003 9:00 AM
>
> Actually from browsing CVS it looks like the test you are doing is:
>
> #if SIZEOF_LONG < 8
>
> which means that sizeof(long int) < 8, but I think what you really
> want is sizeof(long long int) or perhaps sizeof(__int64) since a
> long int is sometimes (usually?) still 32 bits even on 64-bit
> platforms.

On Alpha Tru64, a long is 64 bits. What 64-bit system do you use that has a
32-bit long?

I agree with your point that the macro is no help; sizeof() would be
clearer.

--jkl
-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page