Skip to content
Snippets Groups Projects
Commit c95e7b55 authored by Eugine Blikh's avatar Eugine Blikh
Browse files

Fix for bug #1204040: cdata, that returns, may be not only UINT64 or INT64

parent 184ab11e
No related branches found
No related tags found
No related merge requests found
......@@ -950,7 +950,17 @@ tarantool_lua_printstack_yaml(struct lua_State *L, struct tbuf *out)
GCcdata *cd = cdataV(L->base + i - 1);
const char *sz = tarantool_lua_tostring(L, i);
int len = strlen(sz);
int chop = (cd->ctypeid == CTID_UINT64 ? 3 : 2);
int chop;
switch (cd->ctypeid){
case CTID_UINT64:
chop = 3;
break;
case CTID_INT64:
chop = 2;
break;
default:
chop = 0;
}
tbuf_printf(out, " - %-.*s" CRLF, len - chop, sz);
} else
tbuf_printf(out, " - %s" CRLF,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment