diff --git a/src/pkg/runtime/rune.c b/src/pkg/runtime/rune.c index 652ccdfa666..598edc6f369 100644 --- a/src/pkg/runtime/rune.c +++ b/src/pkg/runtime/rune.c @@ -161,8 +161,9 @@ bad: *rune = Bad; return 1; badlen: + // was return 0, but return 1 is more convenient for the runtime. *rune = Bad; - return 0; + return 1; } diff --git a/test/bugs/bug204.go b/test/fixedbugs/bug204.go similarity index 100% rename from test/bugs/bug204.go rename to test/fixedbugs/bug204.go