diff --git a/pdf.c b/pdf.c
index 89e95584c5fd0a2c903591fd8ded78e3e3ecc46d..59ed8b077837d7427c4d07fef5ccd3e0d460324c 100644
--- a/pdf.c
+++ b/pdf.c
@@ -33,7 +33,7 @@
 
 
 /* Works differently from strictness: messages with severity equal to or greater than this number will be printed */
-uint8_t log_level = 0;
+uint64_t log_level = 0;
 uint64_t log_messages = 0; // XXX: maybe make it static to log_messages
 uint64_t log_capacity = 0; // XXX: this too
 uint8_t logs_failed = 0; //XXX: would also be better off without being a global