Demos (master): tri-2101010: s/uint32_t/unsigned/
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Aug 2 20:14:11 UTC 2011
Module: Demos
Branch: master
Commit: 5722220627c494403eb5e944c48a491d212b3c5a
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=5722220627c494403eb5e944c48a491d212b3c5a
Author: José Fonseca <jfonseca at vmware.com>
Date: Tue Aug 2 21:11:56 2011 +0100
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.
---
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;
More information about the mesa-commit
mailing list