reflect: add missing Uintptr type and some numerical tests

This commit is contained in:
Damian Gryski
2023-03-25 11:00:07 -07:00
committed by Ayke
parent 39f76f43fc
commit 97ece754f6
2 changed files with 193 additions and 1 deletions
+1 -1
View File
@@ -1114,7 +1114,7 @@ func convertOp(src Value, typ Type) (Value, bool) {
return cvtIntString(src, rtype), true
}
case Uint, Uint8, Uint16, Uint32, Uint64:
case Uint, Uint8, Uint16, Uint32, Uint64, Uintptr:
switch rtype := typ.(*rawType); rtype.Kind() {
case Int, Int8, Int16, Int32, Int64, Uint, Uint8, Uint16, Uint32, Uint64, Uintptr:
return cvtUint(src, rtype), true