| author | José Fonseca <jfonseca@vmware.com> | 2011-08-02 20:11:56 (GMT) |
|---|---|---|
| committer | José Fonseca <jfonseca@vmware.com> | 2011-08-02 20:13:42 (GMT) |
| commit | 5722220627c494403eb5e944c48a491d212b3c5a (patch) (side-by-side diff) | |
| tree | 2a384c517d5136461a1ad0a468ff2e5b0e7352d4 | |
| parent | 3618a561fe3250ea7014005b3e3e0cb8095cae4c (diff) | |
| download | demos-5722220627c494403eb5e944c48a491d212b3c5a.zip demos-5722220627c494403eb5e944c48a491d212b3c5a.tar.gz | |
tri-2101010: s/uint32_t/unsigned/
uint32_t doesn't exist on MSVC, and unsigned is 32bit on all archs we
care, so it didn't seem worth importing the MSVC stdint.h headers just
for this.
| -rw-r--r-- | src/trivial/tri-2101010.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trivial/tri-2101010.c b/src/trivial/tri-2101010.c index f8e8e09..34b03fc 100644 --- a/src/trivial/tri-2101010.c +++ b/src/trivial/tri-2101010.c @@ -75,9 +75,9 @@ static void Key(unsigned char key, int x, int y) #define i32to10(x) ((x) >= 0 ? (x & 0x1ff) : 1024-(abs((x))& 0x1ff)) #define i32to2(x) ((x) >= 0 ? (x & 0x1) : 3-abs((x))) -static uint32_t iconv(int x, int y, int z, int w) +static unsigned iconv(int x, int y, int z, int w) { - uint32_t val; + unsigned val; val = i32to10(x); val |= i32to10(y) << 10; |
