nikandfor 9 anni fa
parent
commit
cb3837b746
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      marshal_test.go

+ 3 - 3
marshal_test.go

@@ -707,9 +707,9 @@ func TestMarshalVarint(t *testing.T) {
 			Unmarshaled: 9223372036854775808,
 		},
 		{
-			Value:       math.MaxUint64,
+			Value:       uint64(math.MaxUint64),
 			Marshaled:   []byte("\x00\x80\x00\x00\x00\x00\x00\x00\x00"),
-			Unmarshaled: math.MaxUint64,
+			Unmarshaled: uint64(math.MaxUint64),
 		},
 	}
 
@@ -724,7 +724,7 @@ func TestMarshalVarint(t *testing.T) {
 		}
 
 		binder := new(uint64)
-		err = Unmarshal(NativeType{proto: 2, typ: TypeVarint}, test.Marshaled, binder)
+		err = Unmarshal(NativeType{proto: 2, typ: TypeVarint}, test.Marshaled, &binder)
 		if err != nil {
 			t.Errorf("error unmarshaling varint: %v (test #%d)", err, i)
 		}