mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-05 11:47:47 +00:00
Update idl_parser.cpp
This commit is contained in:
parent
22697722d9
commit
5f2b4e7872
1 changed files with 0 additions and 7 deletions
|
|
@ -423,13 +423,6 @@ CheckedError Parser::Next() {
|
|||
return NoError();
|
||||
} else if (isdigit(static_cast<unsigned char>(c)) || c == '-') {
|
||||
const char *start = cursor_ - 1;
|
||||
const char *start_2 = cursor_ + 1;
|
||||
if (c == '-' && *cursor_ == '0' && (*start_2 == 'x' || *start_2 == 'X')) {
|
||||
++start;
|
||||
++cursor_;
|
||||
attribute_.append(&c, &c + 1);
|
||||
c = '0';
|
||||
}
|
||||
if (c == '0' && (*cursor_ == 'x' || *cursor_ == 'X')) {
|
||||
cursor_++;
|
||||
while (isxdigit(static_cast<unsigned char>(*cursor_))) cursor_++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue