Skip to content

Commit

Permalink
fix stacktrace & misc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Mar 27, 2024
1 parent 4c18bd0 commit 756775b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static value_t fl_current_module_counter(fl_context_t *fl_ctx, value_t *args, ui
// to avoid the counter being 0 or 1, which are reserved
ptrhash_put(mod_table, funcname, (void*)(uintptr_t)((nxt + 1) << 2 | 3));
uv_mutex_unlock(&counter_table_lock);
snprintf(buf, sizeof(buf), "%s%d", funcname, nxt);
snprintf(buf, sizeof(buf), "<%s>%d", funcname, nxt);
}
else {
snprintf(buf, sizeof(buf), "%d", jl_module_next_counter(ctx->module));
Expand Down
3 changes: 2 additions & 1 deletion src/datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ static jl_sym_t *jl_demangle_typename(jl_sym_t *s) JL_NOTSAFEPOINT
len = strlen(n) - 1;
else
len = (end-n) - 1; // extract `f` from `#f#...`
if (is10digit(n[1]) || is_anonfn_typename(n))
if (is10digit(n[1]) || n[1] == '<') {
return _jl_symbol(n, len+1);
}
return _jl_symbol(&n[1], len);
}

Expand Down

0 comments on commit 756775b

Please sign in to comment.