Browse Source

Fix 1 warning and 1 bug.

pull/210/merge
Damien George 11 years ago
parent
commit
f64086f80f
  1. 2
      py/lexer.c
  2. 1
      py/vstr.c

2
py/lexer.c

@ -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);

1
py/vstr.c

@ -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…
Cancel
Save