From 26fe0dfd66df2cd25c6407d9cb3e0b95e0cc8484 Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Fri, 29 Apr 2016 21:33:33 -0400 Subject: [PATCH] Correct type of `jl_lineno` --- base/deprecated.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/deprecated.jl b/base/deprecated.jl index 1eb13ffcbdab2..f46b66eddee87 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -59,7 +59,7 @@ end function depwarn(msg, funcsym) opts = JLOptions() if opts.depwarn > 0 - ln = unsafe_load(cglobal(:jl_lineno, Int)) + ln = Int(unsafe_load(cglobal(:jl_lineno, Cint))) fn = bytestring(unsafe_load(cglobal(:jl_filename, Ptr{Cchar}))) bt = backtrace() caller = firstcaller(bt, funcsym)