diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-10-09 13:44:26 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-10-09 13:44:26 +0000 |
| commit | 86e9acc7a7b714307e08ab25117ca03cecb00936 (patch) | |
| tree | 38dd7904147567c4e97e1f62eca64739d3a516eb /src/runtime/c/gu/utf8.c | |
| parent | 8e3ed825a8dde13894a44169ddc09cc2c2be60b2 (diff) | |
throw away the long obsolete runtime type information in the C runtime
Diffstat (limited to 'src/runtime/c/gu/utf8.c')
| -rw-r--r-- | src/runtime/c/gu/utf8.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/runtime/c/gu/utf8.c b/src/runtime/c/gu/utf8.c index 70db65f05..8f22e5823 100644 --- a/src/runtime/c/gu/utf8.c +++ b/src/runtime/c/gu/utf8.c @@ -49,9 +49,9 @@ gu_in_utf8_(GuIn* in, GuExn* err) uint8_t buf[3]; // If reading the extra bytes causes EOF, it is an encoding // error, not a legitimate end of character stream. - GuExn* tmp_err = gu_exn(err, GuEOF, NULL); - gu_in_bytes(in, buf, len, tmp_err); - if (tmp_err->caught) { + gu_in_bytes(in, buf, len, err); + if (gu_exn_caught(err, GuEOF)) { + gu_exn_clear(err); goto fail; } if (!gu_ok(err)) { @@ -151,9 +151,9 @@ gu_in_utf8_buf(uint8_t** buf, GuIn* in, GuExn* err) } // If reading the extra bytes causes EOF, it is an encoding // error, not a legitimate end of character stream. - GuExn* tmp_err = gu_exn(err, GuEOF, NULL); - gu_in_bytes(in, p, len, tmp_err); - if (tmp_err->caught) { + gu_in_bytes(in, p, len, err); + if (gu_exn_caught(err, GuEOF)) { + gu_exn_clear(err); goto fail; } if (!gu_ok(err)) { |
