diff --git a/base/boot.jl b/base/boot.jl index e7a851f99327c..3156c4ab99e7b 100644 --- a/base/boot.jl +++ b/base/boot.jl @@ -283,11 +283,13 @@ _new(:NewvarNode, :Symbol) _new(:QuoteNode, :ANY) _new(:GenSym, :Int) -Module(name::Symbol=:anonymous, std_imports::Bool=true) = ccall(:jl_f_new_module, Any, (Any, Int32), name, std_imports)::Module +Module(name::Symbol=:anonymous, std_imports::Bool=true) = ccall(:jl_f_new_module, Any, (Any, Bool), name, std_imports)::Module Task(f::ANY) = ccall(:jl_new_task, Any, (Any, Int), f::Function, 0)::Task # simple convert for use by constructors of types in Core +# note that there is no actual conversion defined here, +# so the methods and ccall's in Core aren't permitted to use convert convert(::Type{Any}, x::ANY) = x convert{T}(::Type{T}, x::T) = x cconvert(T::Type, x) = convert(T, x) diff --git a/src/module.c b/src/module.c index 9b0d821e6e9a2..6d8852565b498 100644 --- a/src/module.c +++ b/src/module.c @@ -36,7 +36,7 @@ jl_module_t *jl_new_module(jl_sym_t *name) return m; } -DLLEXPORT jl_value_t *jl_f_new_module(jl_sym_t *name, int std_imports) +DLLEXPORT jl_value_t *jl_f_new_module(jl_sym_t *name, uint8_t std_imports) { jl_module_t *m = jl_new_module(name); m->parent = jl_main_module;