blob: 8acf4ca384e5a7084000bc17213e40e93198dbfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- src/gxclrast.c.orig 2003-01-17 00:49:03 UTC
+++ src/gxclrast.c
@@ -87,10 +87,10 @@ cmd_print_bits(const byte * data, int wi
private long
cmd_get_w(const byte * p, const byte ** rp)
{
- long val = *p++ & 0x7f;
+ int val = *p++ & 0x7f;
int shift = 7;
- for (; val += (long)(*p & 0x7f) << shift, *p++ > 0x7f; shift += 7);
+ for (; val += (int)(*p & 0x7f) << shift, *p++ > 0x7f; shift += 7);
*rp = p;
return val;
}
|