diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-08-02 21:11:56 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-08-02 21:13:42 +0100 |
commit | 5722220627c494403eb5e944c48a491d212b3c5a (patch) | |
tree | 2a384c517d5136461a1ad0a468ff2e5b0e7352d4 | |
parent | 3618a561fe3250ea7014005b3e3e0cb8095cae4c (diff) |
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 f8e8e09e..34b03fc4 100644 --- a/src/trivial/tri-2101010.c +++ b/src/trivial/tri-2101010.c @@ -72,15 +72,15 @@ 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; val |= i32to10(z) << 20; val |= i32to2(w) << 30; return val; |