aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reflect
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-22 16:44:58 -0700
committerRon Evans <[email protected]>2023-03-25 22:32:29 +0100
commitf7880e73d84f559c9035945aae413af4e2f64a49 (patch)
tree2b686c7f36405aad4a6b2cd64b5ebb2488257ade /src/reflect
parent3aa8c8e0d15a0fcaadbb8fb7d3c42e232f563af8 (diff)
downloadtinygo-f7880e73d84f559c9035945aae413af4e2f64a49.tar.gz
tinygo-f7880e73d84f559c9035945aae413af4e2f64a49.zip
reflect: tweak v.typecode.Key().(*rawType) -> v.typecode.key()
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/value.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go
index 025d8618a..c58d70840 100644
--- a/src/reflect/value.go
+++ b/src/reflect/value.go
@@ -846,7 +846,7 @@ func (v Value) MapRange() *MapIter {
panic(&ValueError{Method: "MapRange", Kind: v.Kind()})
}
- keyType := v.typecode.Key().(*rawType)
+ keyType := v.typecode.key()
isKeyStoredAsInterface := keyType.Kind() != String && !keyType.isBinary()
return &MapIter{