Skip to content

Commit

Permalink
fix jl_static_show formatting for jl_lambda_info_t objects (post tupl…
Browse files Browse the repository at this point in the history
…e/svec branch merge)
  • Loading branch information
vtjnash committed Apr 26, 2015
1 parent 965561a commit 195bd01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,12 +1343,12 @@ size_t jl_static_show_x(JL_STREAM *out, jl_value_t *v, int depth)
else if (jl_is_lambda_info(v)) {
jl_lambda_info_t *li = (jl_lambda_info_t*)v;
n += jl_static_show_x(out, (jl_value_t*)li->module, depth);
n += jl_printf(out, ".%s", li->name->name);
if (li->specTypes) {
n += jl_static_show_x(out, (jl_value_t*)li->specTypes, depth);
n += jl_printf(out, ".");
n += jl_show_svec(out, li->specTypes->parameters, li->name->name);
}
else {
n += jl_printf(out, "(?)");
n += jl_printf(out, ".%s(?)", li->name->name);
}
// The following is nice for debugging, but allocates memory and generates a lot of output
// so it may not be a good idea to to have it active
Expand Down

0 comments on commit 195bd01

Please sign in to comment.