diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-01 03:02:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-11-01 03:02:13 +0000 |
commit | 776f27a67f26c795ba8c27a4e69525382b9379c3 (patch) | |
tree | 0285cca6b375a23d93c20efec03cb9adec30f0e0 /libgo/runtime/runtime.c | |
parent | 79e0221796bf5897204e8077afc20e34f88dab3b (diff) | |
download | gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.zip gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.gz gcc-776f27a67f26c795ba8c27a4e69525382b9379c3.tar.bz2 |
compiler, runtime: More steps toward separating int and intgo.
From-SVN: r193059
Diffstat (limited to 'libgo/runtime/runtime.c')
-rw-r--r-- | libgo/runtime/runtime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c index c5716ab..3d4865a 100644 --- a/libgo/runtime/runtime.c +++ b/libgo/runtime/runtime.c @@ -9,7 +9,6 @@ #include "runtime.h" #include "array.h" #include "go-panic.h" -#include "go-string.h" int32 runtime_gotraceback(void) @@ -93,9 +92,9 @@ runtime_getenv(const char *s) envv = (String*)syscall_Envs.__values; envc = syscall_Envs.__count; for(i=0; i<envc; i++){ - if(envv[i].__length <= len) + if(envv[i].len <= len) continue; - v = (const byte*)envv[i].__data; + v = (const byte*)envv[i].str; for(j=0; j<len; j++) if(bs[j] != v[j]) goto nomatch; |