Browse Source

codec: fix msgpack SignedInger bug

Fixes #117
Ugorji Nwoke 10 years ago
parent
commit
1a8bf87a90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      codec/msgpack.go

+ 1 - 1
codec/msgpack.go

@@ -374,7 +374,7 @@ func (d *msgpackDecDriver) DecodeNaked() {
 	}
 	if n.v == valueTypeUint && d.h.SignedInteger {
 		n.v = valueTypeInt
-		n.i = int64(n.v)
+		n.i = int64(n.u)
 	}
 	return
 }