diff options
Diffstat (limited to 'libgo/runtime/print.c')
-rw-r--r-- | libgo/runtime/print.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/runtime/print.c b/libgo/runtime/print.c index 690bcaf0331..42717bb951a 100644 --- a/libgo/runtime/print.c +++ b/libgo/runtime/print.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include "runtime.h" +#include "array.h" //static Lock debuglock; @@ -294,8 +295,8 @@ runtime_printstring(String v) // gwrite("[string too long]", 17); // return; // } - if(v.__length > 0) - gwrite(v.__data, v.__length); + if(v.len > 0) + gwrite(v.str, v.len); } void |