Commit f64086f8 authored by Damien George's avatar Damien George
Browse files

Fix 1 warning and 1 bug.

parent 452932ac
......@@ -471,7 +471,7 @@ static void mp_lexer_next_token_into(mp_lexer_t *lex, mp_token_t *tok, bool firs
case 'r': c = 0x0d; break;
case 'x':
{
uint num;
uint num = 0;
if (!get_hex(lex, 2, &num)) {
// TODO error message
assert(0);
......
......@@ -190,6 +190,7 @@ void vstr_cut_tail(vstr_t *vstr, int len) {
} else {
vstr->len -= len;
}
vstr->buf[vstr->len] = 0;
}
void vstr_printf(vstr_t *vstr, const char *fmt, ...) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment