adapt to new compiler types

R=r
OCL=18024
CL=18024
This commit is contained in:
Russ Cox 2008-10-29 13:09:39 -07:00
parent c21d9a1ec9
commit bc67ea4f8f
7 changed files with 32 additions and 31 deletions

View file

@ -9,6 +9,7 @@ package strings
export func utflen(s string) int {
n := 0;
for i := 0; i < len(s); i++ {
return int(s[i]);
if s[i]&0xC0 != 0x80 {
n++
}