progs/bf/bfc1.sc
changeset 746 6916229b817b
parent 742 b5b5583a3a08
child 825 dca072e2bb7d
--- a/progs/bf/bfc1.sc	Sun Aug 23 23:44:44 2020 +0100
+++ b/progs/bf/bfc1.sc	Mon Aug 24 00:24:58 2020 +0100
@@ -44,8 +44,8 @@
 def compile(prog: String) : String = 
   s"""#include <string.h> 
       #include <stdio.h> 
-      char field[30000]; 
-      char *ptr = &field[15000]; 
+      int field[30000]; 
+      int *ptr = &field[15000]; 
       int main() { 
       memset(field, '\\0', 30000); 
       ${instrs2(prog)}