diff options
| author | tomohiko okazaki <tomohiko.okazaki@xcompass.com> | 2019-06-17 00:20:57 +0900 |
|---|---|---|
| committer | tomohiko okazaki <tomohiko.okazaki@xcompass.com> | 2019-06-17 00:20:57 +0900 |
| commit | 7a4a9d33a42790181876e393cf894574822e8b09 (patch) | |
| tree | 3fda4864b5e522430d5c10d4d8c6a55b733a30ee | |
| parent | 52a10661a582f82e7db3b279ded4d009f3f1dd62 (diff) | |
| download | nimpb-7a4a9d33a42790181876e393cf894574822e8b09.tar.gz nimpb-7a4a9d33a42790181876e393cf894574822e8b09.zip | |
fix test
| -rw-r--r-- | nimpb/nimpb.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nimpb/nimpb.nim b/nimpb/nimpb.nim index 3ba3b70..9ca7742 100644 --- a/nimpb/nimpb.nim +++ b/nimpb/nimpb.nim @@ -118,7 +118,7 @@ proc zigzagEncode*(n: int32): uint32 = let x = cast[uint32](n) let a = cast[int32](x shl 1) let b = -cast[int32](x shr 31) - result = uint32(a xor b) + result = cast[uint32](a xor b) proc zigzagDecode*(n: uint32): int32 = ## ZigZag decode a 32-bit unsigned integer. |
