Fix serialization of null values

This commit is contained in:
Přemysl Eric Janouch 2018-10-02 23:17:46 +02:00
parent 160f09ecc3
commit 54d86cf25b
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -256,7 +256,7 @@ struct pdf_lexer {
static std::string pdf_serialize(const pdf_object& o) {
switch (o.type) {
case pdf_object::NL: return "\n";
case pdf_object::NIL: return "nil";
case pdf_object::NIL: return "null";
case pdf_object::BOOL: return o.number ? "true" : "false";
case pdf_object::NUMERIC:
{