mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
tiny optimization in pgf/reader
This commit is contained in:
1 parent
9da5ca7f81
commit
ba60e6f0e4
1 file changed
+1
-1
@@ -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