29 lines
980 B
Diff
29 lines
980 B
Diff
--- openshadinglanguage/src/liboslexec/accum_test.cpp.orig 2014-01-08 18:29:57.054742600 +0000
|
|
+++ openshadinglanguage/src/liboslexec/accum_test.cpp 2014-01-08 18:38:57.404742600 +0000
|
|
@@ -28,6 +28,7 @@
|
|
|
|
#include "OSL/accum.h"
|
|
#include "OSL/oslclosure.h"
|
|
+#include <stdint.h>
|
|
|
|
using namespace OSL;
|
|
|
|
@@ -67,7 +68,7 @@
|
|
// our custom argument to write is the rule's number so we
|
|
// can check what. But you normally would pass information
|
|
// about the pixel.
|
|
- long int testno = (long int)flush_data;
|
|
+ long int testno = (intptr_t)flush_data;
|
|
if (has_color && color.x > 0)
|
|
// only mrk with true if there is a positive color present
|
|
m_received[testno] = true;
|
|
@@ -109,7 +110,7 @@
|
|
accum.accum(Color3(1, 1, 1));
|
|
// Restore state and flush
|
|
accum.popState();
|
|
- accum.end((void *)(long int)testno);
|
|
+ accum.end((void *)(intptr_t)testno);
|
|
}
|
|
|
|
int main()
|