aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reflect/intw_avr.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflect/intw_avr.go')
-rw-r--r--src/reflect/intw_avr.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/reflect/intw_avr.go b/src/reflect/intw_avr.go
new file mode 100644
index 000000000..8f294eeee
--- /dev/null
+++ b/src/reflect/intw_avr.go
@@ -0,0 +1,8 @@
+//go:build avr
+
+package reflect
+
+// intw is an integer type, used in places where an int is typically required,
+// except architectures where the size of an int != word size.
+// See https://github.com/tinygo-org/tinygo/issues/1284.
+type intw = uintptr