Skip to content

Commit

Permalink
fix JuliaLang#12464, make jl_typename_str a bit more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Aug 9, 2015
1 parent 5150121 commit 28a1c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ DLLEXPORT void jl_exception_clear(void)
// get the name of a type as a string
DLLEXPORT const char *jl_typename_str(jl_value_t *v)
{
if (jl_is_tuple(v))
return "Tuple";
if (!jl_is_datatype(v))
return NULL;
return ((jl_datatype_t*)v)->name->name->name;
}

Expand Down

0 comments on commit 28a1c49

Please sign in to comment.