Skip to content

Commit 8a8d59a

Browse files
committed
wip [ci skip]
1 parent 9065613 commit 8a8d59a

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src_extra/c4/yml/extra/event_handler_ints.hpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,17 +1254,7 @@ struct EventHandlerInts : public c4::yml::EventHandlerStack<EventHandlerInts, Ev
12541254
_RYML_CB_ERR_(m_stack.m_callbacks, "tag not found", m_curr->pos);
12551255
}
12561256
}
1257-
substr rem = arena_rem();
1258-
csubstr result = normalize_tag_long(tag, rem);
1259-
if(result.is_sub(tag))
1260-
return result;
1261-
if(!result.is_sub(rem))
1262-
{
1263-
if(result.len && result.len <= rem.len)
1264-
memcpy(rem.str, result.str, result.len);
1265-
}
1266-
alloc_arena(result.len);
1267-
return rem.first(result.len <= rem.len ? result.len : 0);
1257+
return tag;
12681258
}
12691259
#undef _enable_
12701260
#undef _disable_

test/test_extra_ints.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ const IntEventsCase test_cases[] = {
497497
e(VAL_|BSEQ|BLCK),
498498
e(VAL_|TAG_|AREN, 0, 20, "!extraordinary-light"),
499499
e(VAL_|SCLR|PLAI|PSTR, 94, 5, "green"),
500-
e(VAL_|TAG_|AREN|PSTR, 20, 23, "<tag:yaml.org,2002:int>"),
500+
e(VAL_|TAG_|PSTR, 102, 5, "!!int"),
501501
e(VAL_|SCLR|PLAI|PSTR, 108, 1, "2"),
502502
e(ESEQ|PSTR),
503503
e(EDOC),

0 commit comments

Comments
 (0)