diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-24 17:49:30 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2014-03-24 17:49:30 +0000 |
commit | 737e8c96095bcee260134043bb09df0f022c0d90 (patch) | |
tree | dfd422ebf8487b195f07f73936ee3138115740d7 /graphics/ilmbase/files/patch-Imath__ImathFun.cpp | |
parent | c4e3432e3193d9f67f68046466408f9402686c9a (diff) | |
download | ports-737e8c96095bcee260134043bb09df0f022c0d90.tar.gz ports-737e8c96095bcee260134043bb09df0f022c0d90.zip |
- Change license BSD to BSD3CLAUSE
- Add MAJORVER, VER
- Strip libraries
- Recreate patches with make makepatch
Notes
Notes:
svn path=/head/; revision=349036
Diffstat (limited to 'graphics/ilmbase/files/patch-Imath__ImathFun.cpp')
-rw-r--r-- | graphics/ilmbase/files/patch-Imath__ImathFun.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/graphics/ilmbase/files/patch-Imath__ImathFun.cpp b/graphics/ilmbase/files/patch-Imath__ImathFun.cpp new file mode 100644 index 000000000000..e42cd2a143c2 --- /dev/null +++ b/graphics/ilmbase/files/patch-Imath__ImathFun.cpp @@ -0,0 +1,44 @@ +--- ./Imath/ImathFun.cpp.orig 2013-10-11 20:40:29.000000000 +0200 ++++ ./Imath/ImathFun.cpp 2014-01-29 13:16:44.000000000 +0100 +@@ -33,6 +33,7 @@ + /////////////////////////////////////////////////////////////////////////// + + ++#include <inttypes.h> + #include "ImathFun.h" + + IMATH_INTERNAL_NAMESPACE_SOURCE_ENTER +@@ -41,14 +42,14 @@ + float + succf (float f) + { +- union {float f; int i;} u; ++ union {float f; int32_t i;} u; + u.f = f; + + if ((u.i & 0x7f800000) == 0x7f800000) + { + // Nan or infinity; don't change value. + } +- else if (u.i == 0x00000000 || u.i == 0x80000000) ++ else if (u.i == (int32_t)0x00000000 || u.i == (int32_t)0x80000000) + { + // Plus or minus zero. + +@@ -76,14 +77,14 @@ + float + predf (float f) + { +- union {float f; int i;} u; ++ union {float f; int32_t i;} u; + u.f = f; + + if ((u.i & 0x7f800000) == 0x7f800000) + { + // Nan or infinity; don't change value. + } +- else if (u.i == 0x00000000 || u.i == 0x80000000) ++ else if (u.i == (int32_t)0x00000000 || u.i == (int32_t)0x80000000) + { + // Plus or minus zero. + |