From: Francesco Pretto <cez...@gmail.com>

Fixes warnings in linux since the maximum value of EPdfDataType is 255
---
  src/base/PdfVariant.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/src/base/PdfVariant.h b/src/base/PdfVariant.h
index c1fc430..97e1745 100644
--- a/src/base/PdfVariant.h
+++ b/src/base/PdfVariant.h
@@ -521,7 +521,7 @@ class PODOFO_API PdfVariant {
      *  required to access the correct member of 
      *  the union UVariant.
      */
-    pdf_int8 m_eDataType;
+    EPdfDataType m_eDataType;
 
     // No touchy. Only for use by PdfVariant's internal tracking of the delayed
     // loading state. Use DelayedLoadDone() to test this if you need to.
@@ -582,7 +582,7 @@ EPdfDataType PdfVariant::GetDataType() const
 {
     DelayedLoad();
 
-    return static_cast<EPdfDataType>(m_eDataType);
+    return m_eDataType;
 }
 
 // -----------------------------------------------------


_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to