From 82f5ca1ef05970fc271dc7e1cacaed8e27f65910 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Tue, 6 Aug 2013 21:49:03 +1000 Subject: runtime: change int32 to intgo in findnull and findnullw Update #6046. This CL just does findnull and findnullw. There are other functions to fix but doing them a few at a time will help isolate any (unlikely) breakages these changes bring up in architectures I can't test myself. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12520043 --- src/pkg/runtime/string.goc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pkg/runtime/string.goc') diff --git a/src/pkg/runtime/string.goc b/src/pkg/runtime/string.goc index 15d690a921..dccb97128a 100644 --- a/src/pkg/runtime/string.goc +++ b/src/pkg/runtime/string.goc @@ -10,10 +10,10 @@ package runtime String runtime·emptystring; -int32 +intgo runtime·findnull(byte *s) { - int32 l; + intgo l; if(s == nil) return 0; @@ -22,10 +22,10 @@ runtime·findnull(byte *s) return l; } -int32 +intgo runtime·findnullw(uint16 *s) { - int32 l; + intgo l; if(s == nil) return 0; -- cgit v1.3