1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-30 23:23:49 +02:00

fix #196 do not hard code 1 << 49

This commit is contained in:
Tao Wen
2017-11-15 23:15:31 +08:00
parent d394a135a1
commit 3c0e5762c4
2 changed files with 5 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import (
)
func Test_write_empty_interface_via_placeholder(t *testing.T) {
fmt.Println(^uint(0) >> 1)
should := require.New(t)
m := map[uint32]interface{}{1:"hello"}
inf := reflect.ValueOf(m).MapIndex(reflect.ValueOf(uint32(1))).Interface()