소스 검색

Changed marshal logic that sent float64 pointers to float marshalling.

Phillip Couto 11 년 전
부모
커밋
0ee83e3b17
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      marshal.go

+ 1 - 1
marshal.go

@@ -659,7 +659,7 @@ func marshalDouble(info *TypeInfo, value interface{}) ([]byte, error) {
 	case reflect.Float64:
 		return encBigInt(int64(math.Float64bits(rv.Float()))), nil
 	case reflect.Ptr:
-		return marshalFloat(info, rv.Elem().Interface())
+		return marshalDouble(info, rv.Elem().Interface())
 	}
 	return nil, marshalErrorf("can not marshal %T into %s", value, info)
 }