Skip to content

Commit 08fd080

Browse files
committed
Work around early pointer conversion issue.
1 parent 94461cf commit 08fd080

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cl/memory/buffer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct Buffer <: AbstractMemoryObject
77
context::Context
88
end
99

10-
Buffer() = Buffer(C_NULL, nothing, 0, context())
10+
Buffer() = Buffer(C_NULL, CL_NULL, 0, context())
1111

1212
Base.pointer(buf::Buffer) = @something buf.ptr error("Buffer does not have a device private address")
1313
Base.sizeof(buf::Buffer) = buf.bytesize

0 commit comments

Comments
 (0)