$OpenBSD: patch-src_dpx_imageio_dpxinput_cpp,v 1.1 2014/03/25 10:37:39 pascal Exp $
--- src/dpx.imageio/dpxinput.cpp.orig	Sun Jan 26 02:32:20 2014
+++ src/dpx.imageio/dpxinput.cpp	Mon Mar 24 23:31:50 2014
@@ -375,7 +375,7 @@ DPXInput::seek_subimage (int subimage, int miplevel, I
         m_spec.attribute ("compression", "rle");
     char buf[32 + 1];
     m_dpx.header.Description (subimage, buf);
-    if (buf[0] && buf[0] != -1)
+    if (buf[0] && buf[0] != char(-1))
         m_spec.attribute ("ImageDescription", buf);
     m_spec.attribute ("PixelAspectRatio", m_dpx.header.AspectRatio(0)
          / (float)m_dpx.header.AspectRatio(1));
@@ -403,7 +403,7 @@ DPXInput::seek_subimage (int subimage, int miplevel, I
                                         DPX_SET_ATTRIB(x, )
     // see comment above Copyright, Software and DocumentName
 #define DPX_SET_ATTRIB_STR(X, x)    if (m_dpx.header.x[0]                     \
-                                        && m_dpx.header.x[0] != -1)           \
+                                        && m_dpx.header.x[0] != char(-1))           \
                                         m_spec.attribute ("dpx:" #X,          \
                                             m_dpx.header.x)
 
