Skip to content

Commit 9723ff1

Browse files
committed
atomics: fix setonce runtime intrinsic
1 parent 8c60a17 commit 9723ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datatype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ inline int setonce_bits(jl_datatype_t *rty, char *p, jl_value_t *parent, jl_valu
21762176
}
21772177
else {
21782178
char *px = lock(p, parent, needlock, isatomic);
2179-
success = undefref_check(rty, (jl_value_t*)px) != NULL;
2179+
success = undefref_check(rty, (jl_value_t*)px) == NULL;
21802180
if (success)
21812181
memassign_safe(hasptr, px, rhs, fsz);
21822182
unlock(p, parent, needlock, isatomic);

0 commit comments

Comments
 (0)