summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2008-02-13 10:20:37 -0800
committerAaron Plattner <aplattner@nvidia.com>2008-02-13 10:20:37 -0800
commit04551d8594d642b17f99fcef8019ae780b24a557 (patch)
treed6faca414d27cb5ff44952669647c3840a5a2155
parenta99e5e558fc9e279eeee2b76187766ac1dde19cf (diff)
1.0-81781.0-8178
-rw-r--r--DRIVER_VERSION2
-rw-r--r--mkprecompiled.c8
-rw-r--r--precompiled.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/DRIVER_VERSION b/DRIVER_VERSION
index ed4e707..795d573 100644
--- a/DRIVER_VERSION
+++ b/DRIVER_VERSION
@@ -1 +1 @@
-1.0-8174
+1.0-8178
diff --git a/mkprecompiled.c b/mkprecompiled.c
index d81561d..d8d11d3 100644
--- a/mkprecompiled.c
+++ b/mkprecompiled.c
@@ -453,16 +453,16 @@ uint32 decode_uint32(char *buf)
{
uint32 ret = 0;
- ret += (uint32) buf[3];
+ ret += (((uint32) buf[3]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[2];
+ ret += (((uint32) buf[2]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[1];
+ ret += (((uint32) buf[1]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[0];
+ ret += (((uint32) buf[0]) & 0xff);
ret <<= 0;
return ret;
diff --git a/precompiled.c b/precompiled.c
index 0c99d4b..ae91390 100644
--- a/precompiled.c
+++ b/precompiled.c
@@ -58,16 +58,16 @@ static uint32 decode_uint32(char *buf)
{
uint32 ret = 0;
- ret += (uint32) buf[3];
+ ret += (((uint32) buf[3]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[2];
+ ret += (((uint32) buf[2]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[1];
+ ret += (((uint32) buf[1]) & 0xff);
ret <<= 8;
- ret += (uint32) buf[0];
+ ret += (((uint32) buf[0]) & 0xff);
ret <<= 0;
return ret;