ZedZone
|
Blog
|
Software
|
Code
projects
/
zcl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cb206
)
Fix the pointer array allocation length.
author
Not Zed
<notzed@gmail.com>
Sat, 25 Jan 2020 10:37:24 +0000
(21:07 +1030)
committer
Not Zed
<notzed@gmail.com>
Sat, 25 Jan 2020 10:37:24 +0000
(21:07 +1030)
src/notzed.zcl/classes/au/notzed/zcl/CLProgram.java
patch
|
blob
|
history
diff --git
a/src/notzed.zcl/classes/au/notzed/zcl/CLProgram.java
b/src/notzed.zcl/classes/au/notzed/zcl/CLProgram.java
index
ef55f67
..
ef63a40
100644
(file)
--- a/
src/notzed.zcl/classes/au/notzed/zcl/CLProgram.java
+++ b/
src/notzed.zcl/classes/au/notzed/zcl/CLProgram.java
@@
-220,7
+220,7
@@
public class CLProgram extends CLObject {
try (api.Allocator a = api.Memory.stack();
MemorySegment seg = MemorySegment.allocateNative(size)) {
MemoryAddress data = seg.baseAddress();
- MemoryAddress cptrs = a.alloca(size * 8);
+ MemoryAddress cptrs = a.alloca(size
s.length
* 8);
long off = 0;
int res;