about summary refs log tree commit diff
path: root/boot
diff options
context:
space:
mode:
Diffstat (limited to 'boot')
-rw-r--r--boot/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/common.c b/boot/common.c
index d43bbc1..e696663 100644
--- a/boot/common.c
+++ b/boot/common.c
@@ -83,8 +83,8 @@ struct String
 };
 
 #define STRING_ITERATE(index, c, str) \
-    ascii c = string_at(str, 0);      \
-    for (uint index = 0; index < str.length; c = string_at(str, ++index))
+    ascii c = str.data[0];            \
+    for (uint index = 0; index < str.length; c = str.data[++index])
 
 // allocates a new string in the global string region.
 struct String