diff --git a/pdf.c b/pdf.c
index c05670a05e15cb24a1278d40cd5b26f2699c1924..ff25e39df1125c6753dfbab596f4ceb1f6563dd7 100644
--- a/pdf.c
+++ b/pdf.c
@@ -262,7 +262,7 @@ act_a85group(const HParseResult *p, void *u)
 	HParsedToken **digits = h_seq_elements(p->ast);
 
 	/* 2^32-1, the max value the group can hold as per spec */
-	#define A85GRPMAX 4294967296
+	#define A85GRPMAX 4294967295
 
 	/* Only for groups that do not need to padded to 5 */
 	assert(seq->used == 5);