mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 09:02:50 -06:00
tiny optimization in pgf/reader
This commit is contained in:
@@ -74,7 +74,7 @@ pgf_read_len(PgfReader* rdr)
|
|||||||
// caller can proceed without checking for error
|
// caller can proceed without checking for error
|
||||||
// immediately.
|
// immediately.
|
||||||
gu_return_on_exn(rdr->err, 0);
|
gu_return_on_exn(rdr->err, 0);
|
||||||
if (len < 0) {
|
if (GU_UNLIKELY(len < 0)) {
|
||||||
GuExnData* err_data = gu_raise(rdr->err, PgfReadTagExn);
|
GuExnData* err_data = gu_raise(rdr->err, PgfReadTagExn);
|
||||||
if (err_data) {
|
if (err_data) {
|
||||||
PgfReadTagExn* rtag = gu_new(PgfReadTagExn, err_data->pool);
|
PgfReadTagExn* rtag = gu_new(PgfReadTagExn, err_data->pool);
|
||||||
|
|||||||
Reference in New Issue
Block a user