diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-10-20 21:19:01 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-20 21:19:01 +0000 |
| commit | 0f92e69c8fe508f387551a3d58a1f4c748e6611a (patch) | |
| tree | a337aa1e65b8d4925b44793ac6c313ec99b97ab2 /src/integer.h | |
| parent | ea9c6b32e952e1d87872b992989854e4899cb8f8 (diff) | |
| download | libgats-0f92e69c8fe508f387551a3d58a1f4c748e6611a.tar.gz libgats-0f92e69c8fe508f387551a3d58a1f4c748e6611a.tar.bz2 libgats-0f92e69c8fe508f387551a3d58a1f4c748e6611a.tar.xz libgats-0f92e69c8fe508f387551a3d58a1f4c748e6611a.zip | |
Corrected a bug that caused numbers between -1 and -63 inclusive to be positive.
Diffstat (limited to 'src/integer.h')
| -rw-r--r-- | src/integer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/integer.h b/src/integer.h index 014b53a..b54bf5d 100644 --- a/src/integer.h +++ b/src/integer.h | |||
| @@ -52,6 +52,8 @@ namespace Gats | |||
| 52 | b = (iIn&0x3F); | 52 | b = (iIn&0x3F); |
| 53 | if( iIn > b ) | 53 | if( iIn > b ) |
| 54 | b |= 0x80 | 0x40; | 54 | b |= 0x80 | 0x40; |
| 55 | else | ||
| 56 | b |= 0x40; | ||
| 55 | } | 57 | } |
| 56 | else | 58 | else |
| 57 | { | 59 | { |
