summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;