Fix 1 warning and 1 bug.
This commit is contained in:
parent
452932ace4
commit
f64086f80f
@ -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, ...) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user