summaryrefslogtreecommitdiff
path: root/cpu_ref
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_ref')
-rw-r--r--cpu_ref/rsCpuScriptGroup2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu_ref/rsCpuScriptGroup2.cpp b/cpu_ref/rsCpuScriptGroup2.cpp
index f0b657a2..5ea71d3c 100644
--- a/cpu_ref/rsCpuScriptGroup2.cpp
+++ b/cpu_ref/rsCpuScriptGroup2.cpp
@@ -509,9 +509,9 @@ void Batch::setGlobalsForBatch() {
const IDBase* funcID = closure->mFunctionID.get();
Script* s = funcID->mScript;;
for (const auto& p : closure->mGlobals) {
- const void* value = p.second.first;
+ const int64_t value = p.second.first;
int size = p.second.second;
- if (value == nullptr && size == 0) {
+ if (value == 0 && size == 0) {
// This indicates the current closure depends on another closure for a
// global in their shared module (script). In this case we don't need to
// copy the value. For example, an invoke intializes a global variable