Skip to content

Commit 6776bb2

Browse files
committed
Fixes for 1.11.6
1 parent c3620b3 commit 6776bb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/device.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ julia> find_queue_family(physical_device, QUEUE_COMPUTE_BIT & QUEUE_GRAPHICS_BIT
7676
function find_queue_family(physical_device::PhysicalDevice, queue_capabilities::QueueFlag)
7777
qf_props = get_physical_device_queue_family_properties(physical_device)
7878
index = findfirst(x -> queue_capabilities in x.queue_flags, qf_props)
79-
if isnothing(index)
80-
error("No queue with the desired capabilities could be found.")
81-
end
79+
isnothing(index) && error("No queue with the desired capabilities could be found.")
8280
index - 1
8381
end
8482

src/prewrap/pointers.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ function pointer_length end
4545

4646
pointer_length(arr::Ptr{Nothing}) = 0
4747
pointer_length(arr::AbstractArray) = length(arr)
48+
@static if VERSION v"1.11.6"
49+
pointer_length(arr::MemoryRef) = length(arr)
50+
end
4851

4952
convert_nonnull(@specialize(T), val) = convert(T, val)
5053
convert_nonnull(@specialize(T), val::Ptr{Cvoid}) = val == C_NULL ? val : convert(T, val)

0 commit comments

Comments
 (0)