[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 fr
From: |
John Cowan |
Subject: |
Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type) |
Date: |
Sun, 13 Feb 2011 14:14:14 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Bobby Powers scripsit:
> In C, at least on *nix machines, a long is defined to be the same as the
> pointer size. So on 32-bit systems its synonymous with int, and on 64-bit
> its the same as long long. Why then explicitly define C_word to int on
> 32-bit then, as 'long' should work on both 32 and 64 bit platforms?
Because there are systems like Win64, where long is 32 bits but pointers are
64-bit ("LLP64") and like Unicos (Cray Unix), where all of int, long, and
pointer are 64-bit ("ILP64").
Note that the C standard has nothing to say about pointer size vs. integer
size, and it only requires that long >= int >= short.
--
After fixing the Y2K bug in an application: John Cowan
WELCOME TO <censored> address@hidden
DATE: MONDAK, JANUARK 1, 1900 http://www.ccil.org/~cowan
- [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), David Dreisigmeyer, 2011/02/11
- Message not available
- [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), David Dreisigmeyer, 2011/02/11
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Felix, 2011/02/12
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), David Dreisigmeyer, 2011/02/12
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Jim Ursetto, 2011/02/12
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Bobby Powers, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Felix, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type),
John Cowan <=
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Felix, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), David Dreisigmeyer, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Christian Kellermann, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), David Dreisigmeyer, 2011/02/13
- Re: [Chicken-users] C_word type / Cython (warning: passing argument 2 from incompatible pointer type), Felix, 2011/02/14