mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
adapt to new compiler types
R=r OCL=18024 CL=18024
This commit is contained in:
parent
c21d9a1ec9
commit
bc67ea4f8f
7 changed files with 32 additions and 31 deletions
|
|
@ -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++
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue