Skip to content

Commit 4598966

Browse files
authored
GMP: fix warning in init (#42062)
1 parent d8a8db2 commit 4598966

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/gmp.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ const ALLOC_OVERFLOW_FUNCTION = Ref(false)
9494
function __init__()
9595
try
9696
if version().major != VERSION.major || bits_per_limb() != BITS_PER_LIMB
97-
msg = bits_per_limb() != BITS_PER_LIMB ? error : warn
98-
msg("The dynamically loaded GMP library (v\"$(version())\" with __gmp_bits_per_limb == $(bits_per_limb()))\n",
99-
"does not correspond to the compile time version (v\"$VERSION\" with __gmp_bits_per_limb == $BITS_PER_LIMB).\n",
100-
"Please rebuild Julia.")
97+
msg = """The dynamically loaded GMP library (v\"$(version())\" with __gmp_bits_per_limb == $(bits_per_limb()))
98+
does not correspond to the compile time version (v\"$VERSION\" with __gmp_bits_per_limb == $BITS_PER_LIMB).
99+
Please rebuild Julia."""
100+
bits_per_limb() != BITS_PER_LIMB ? @error(msg) : @warn(msg)
101101
end
102102

103103
ccall((:__gmp_set_memory_functions, :libgmp), Cvoid,

0 commit comments

Comments
 (0)