summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-02 23:17:46 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-02 23:17:46 +0200
commit54d86cf25bd1c6de28740940b697d448d75e8add (patch)
tree125c8d0f162338bde20432d5fbdf78c7bcea35cd
parent160f09ecc32f72c7c63227bb8a5036302d27bda0 (diff)
downloadpdf-simple-sign-54d86cf25bd1c6de28740940b697d448d75e8add.tar.gz
pdf-simple-sign-54d86cf25bd1c6de28740940b697d448d75e8add.tar.xz
pdf-simple-sign-54d86cf25bd1c6de28740940b697d448d75e8add.zip
Fix serialization of null values
-rw-r--r--pdf-simple-sign.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-simple-sign.cpp b/pdf-simple-sign.cpp
index 9366daa..1755dc9 100644
--- a/pdf-simple-sign.cpp
+++ b/pdf-simple-sign.cpp
@@ -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:
{