mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
More code error fixes
This commit is contained in:
@@ -278,10 +278,11 @@ void next_token(state* s) {
|
||||
s->type = TOK_NUMBER;
|
||||
} else {
|
||||
/* Look for a variable or builtin function call. */
|
||||
if(isalpha(s->next[0])) {
|
||||
if(isalpha((int)s->next[0])) {
|
||||
const char* start;
|
||||
start = s->next;
|
||||
while(isalpha(s->next[0]) || isdigit(s->next[0]) || (s->next[0] == '_')) s->next++;
|
||||
while(isalpha((int)s->next[0]) || isdigit((int)s->next[0]) || (s->next[0] == '_'))
|
||||
s->next++;
|
||||
|
||||
const te_variable* var = find_lookup(s, start, s->next - start);
|
||||
if(!var) var = find_builtin(start, s->next - start);
|
||||
|
||||
@@ -36,7 +36,7 @@ static bool_t tama_p1_hal_is_log_enabled(log_level_t level) {
|
||||
static void tama_p1_hal_log(log_level_t level, char* buff, ...) {
|
||||
if(!tama_p1_hal_is_log_enabled(level)) return;
|
||||
|
||||
FuriString* string;
|
||||
FuriString* string = NULL;
|
||||
va_list args;
|
||||
va_start(args, buff);
|
||||
furi_string_cat_vprintf(string, buff, args);
|
||||
|
||||
Reference in New Issue
Block a user