Fix parsing of hex strings

This commit is contained in:
Přemysl Eric Janouch 2018-10-03 22:15:39 +02:00
parent 54d86cf25b
commit c77a9c052a
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ struct pdf_lexer {
buf.clear();
}
}
p++;
if (!buf.empty()) value += char(std::stoi(buf + '0', nullptr, 16));
return {pdf_object::STRING, value};
}