Skip to content

Commit

Permalink
Merge pull request #18508 from JuliaLang/yyc/warnings
Browse files Browse the repository at this point in the history
Fix const cast warning
  • Loading branch information
yuyichao authored Sep 14, 2016
2 parents 0baa867 + 7a9b4f9 commit c722b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ int32_t jl_jlcall_api(const void *function)
// give the function an index in the constant lookup table
if (function == NULL)
return 0;
Function *F = (Function*)function;
const Function *F = (const Function*)function;
return (F->getFunctionType() == jl_func_sig ? 1 : 3);
}

Expand Down

0 comments on commit c722b13

Please sign in to comment.