@@ -804,65 +804,21 @@ func (v int8Value) castTo(dst interface{}) error {
804804
805805 return nil
806806
807- case * uint64 :
808- if v < 0 {
809- return xerrors .WithStackTrace (fmt .Errorf (
810- "%w '%s(%+v)' to '%T' destination" ,
811- ErrCannotCast , v .Type ().Yql (), v , vv ,
812- ))
813- }
814-
815- * vv = uint64 (v )
816-
817- return nil
818807 case * int32 :
819808 * vv = int32 (v )
820809
821810 return nil
822811
823- case * uint32 :
824- if v < 0 {
825- return xerrors .WithStackTrace (fmt .Errorf (
826- "%w '%s(%+v)' to '%T' destination" ,
827- ErrCannotCast , v .Type ().Yql (), v , vv ,
828- ))
829- }
830-
831- * vv = uint32 (v )
832-
833- return nil
834812 case * int16 :
835813 * vv = int16 (v )
836814
837815 return nil
838816
839- case * uint16 :
840- if v < 0 {
841- return xerrors .WithStackTrace (fmt .Errorf (
842- "%w '%s(%+v)' to '%T' destination" ,
843- ErrCannotCast , v .Type ().Yql (), v , vv ,
844- ))
845- }
846-
847- * vv = uint16 (v )
848-
849- return nil
850817 case * int8 :
851818 * vv = int8 (v )
852819
853820 return nil
854821
855- case * uint8 :
856- if v < 0 {
857- return xerrors .WithStackTrace (fmt .Errorf (
858- "%w '%s(%+v)' to '%T' destination" ,
859- ErrCannotCast , v .Type ().Yql (), v , vv ,
860- ))
861- }
862-
863- * vv = uint8 (v )
864-
865- return nil
866822 case * float64 :
867823 * vv = float64 (v )
868824
@@ -981,49 +937,16 @@ func (v int32Value) castTo(dst interface{}) error {
981937
982938 return nil
983939
984- case * uint64 :
985- if v < 0 {
986- return xerrors .WithStackTrace (fmt .Errorf (
987- "%w '%s(%+v)' to '%T' destination" ,
988- ErrCannotCast , v .Type ().Yql (), v , vv ,
989- ))
990- }
991-
992- * vv = uint64 (v )
993-
994- return nil
995940 case * int :
996941 * vv = int (v )
997942
998943 return nil
999944
1000- case * uint :
1001- if v < 0 {
1002- return xerrors .WithStackTrace (fmt .Errorf (
1003- "%w '%s(%+v)' to '%T' destination" ,
1004- ErrCannotCast , v .Type ().Yql (), v , vv ,
1005- ))
1006- }
1007-
1008- * vv = uint (v )
1009-
1010- return nil
1011945 case * int32 :
1012946 * vv = int32 (v )
1013947
1014948 return nil
1015949
1016- case * uint32 :
1017- if v < 0 {
1018- return xerrors .WithStackTrace (fmt .Errorf (
1019- "%w '%s(%+v)' to '%T' destination" ,
1020- ErrCannotCast , v .Type ().Yql (), v , vv ,
1021- ))
1022- }
1023-
1024- * vv = uint32 (v )
1025-
1026- return nil
1027950 case * float64 :
1028951 * vv = float64 (v )
1029952
@@ -1079,17 +1002,6 @@ func (v int64Value) castTo(dst interface{}) error {
10791002
10801003 return nil
10811004
1082- case * uint64 :
1083- if v < 0 {
1084- return xerrors .WithStackTrace (fmt .Errorf (
1085- "%w '%s(%+v)' to '%T' destination" ,
1086- ErrCannotCast , v .Type ().Yql (), v , vv ,
1087- ))
1088- }
1089-
1090- * vv = uint64 (v )
1091-
1092- return nil
10931005 case * float64 :
10941006 * vv = float64 (v )
10951007
0 commit comments