Skip to content

Commit 39abe67

Browse files
authored
use === for comparison to nothing and Symbols (#33764)
1 parent 5983a43 commit 39abe67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SharedArrays.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function serialize(s::AbstractSerializer, S::SharedArray)
454454
for n in fieldnames(SharedArray)
455455
if n in [:s, :pidx, :loc_subarr_1d]
456456
writetag(s.io, UNDEFREF_TAG)
457-
elseif n == :refs
457+
elseif n === :refs
458458
v = getfield(S, n)
459459
if isa(v[1], Future)
460460
# convert to ids to avoid distributed GC overhead
@@ -612,9 +612,9 @@ function print_shmem_limits(slen)
612612
pfx = "kernel"
613613
elseif Sys.isapple()
614614
pfx = "kern.sysv"
615-
elseif Sys.KERNEL == :FreeBSD || Sys.KERNEL == :DragonFly
615+
elseif Sys.KERNEL === :FreeBSD || Sys.KERNEL === :DragonFly
616616
pfx = "kern.ipc"
617-
elseif Sys.KERNEL == :OpenBSD
617+
elseif Sys.KERNEL === :OpenBSD
618618
pfx = "kern.shminfo"
619619
else
620620
# seems NetBSD does not have *.shmall

0 commit comments

Comments
 (0)