summaryrefslogtreecommitdiff
path: root/graphics/openimageio/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2013-07-05 21:34:11 +0000
committerjoerg <joerg>2013-07-05 21:34:11 +0000
commitba7c947af8967974c9646df3d6570bec4ea83191 (patch)
treeefd58fc900b1dbc2e384909a98330d95e4dffd3b /graphics/openimageio/patches
parente1b8b21e1966233c1ddae96c79a6d91c309f5b21 (diff)
downloadpkgsrc-ba7c947af8967974c9646df3d6570bec4ea83191.tar.gz
operator bool doesn't equal good(), but !bad(). This makes a difference
when it comes to handling EOF. Adjust.
Diffstat (limited to 'graphics/openimageio/patches')
-rw-r--r--graphics/openimageio/patches/patch-psd.imageio_psdinput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/openimageio/patches/patch-psd.imageio_psdinput.cpp b/graphics/openimageio/patches/patch-psd.imageio_psdinput.cpp
index 4846e53a0e1..00c7131edd4 100644
--- a/graphics/openimageio/patches/patch-psd.imageio_psdinput.cpp
+++ b/graphics/openimageio/patches/patch-psd.imageio_psdinput.cpp
@@ -1,4 +1,4 @@
-$NetBSD: patch-psd.imageio_psdinput.cpp,v 1.1 2013/05/09 13:58:54 joerg Exp $
+$NetBSD: patch-psd.imageio_psdinput.cpp,v 1.2 2013/07/05 21:34:12 joerg Exp $
--- psd.imageio/psdinput.cpp.orig 2013-02-21 17:10:46.000000000 +0000
+++ psd.imageio/psdinput.cpp
@@ -7,7 +7,7 @@ $NetBSD: patch-psd.imageio_psdinput.cpp,v 1.1 2013/05/09 13:58:54 joerg Exp $
// value = boost::numeric_cast<TVariable>(buffer);
value = buffer;
- return m_file;
-+ return m_file.good();
++ return !m_file.bad();
}
int read_pascal_string (std::string &s, uint16_t mod_padding);