mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -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
|
||||
// immediately.
|
||||
gu_return_on_exn(rdr->err, 0);
|
||||
if (len < 0) {
|
||||
if (GU_UNLIKELY(len < 0)) {
|
||||
GuExnData* err_data = gu_raise(rdr->err, PgfReadTagExn);
|
||||
if (err_data) {
|
||||
PgfReadTagExn* rtag = gu_new(PgfReadTagExn, err_data->pool);
|
||||
|
||||
Reference in New Issue
Block a user