mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
reflect: add missing Uintptr type and some numerical tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user