cpp/poppler-image-private.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 946aaf446503e2036a7f1323c2ff9e5d2465f6f1
Author: Albert Astals Cid <[email protected]>
Date:   Tue Mar 15 14:24:26 2022 +0100

    cpp: Remove bit size qualifier from format variable
    
    The standard doesn't guarantee if the types of enums is going to be
    signed or not, specifically MSVC uses unsigned so you can't store all
    the enums in just 3 bits
    
    Fixes #1229

diff --git a/cpp/poppler-image-private.h b/cpp/poppler-image-private.h
index 68208dd6..53952e5d 100644
--- a/cpp/poppler-image-private.h
+++ b/cpp/poppler-image-private.h
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2010, Pino Toscano <[email protected]>
- * Copyright (C) 2018, Albert Astals Cid <[email protected]>
+ * Copyright (C) 2018, 2022, Albert Astals Cid <[email protected]>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -42,7 +42,7 @@ public:
     int height;
     int bytes_per_row;
     int bytes_num;
-    image::format_enum format : 3;
+    image::format_enum format;
     bool own_data : 1;
 };
 

Reply via email to