Selaa lähdekoodia

empty functions must return 0

master
Martin Dørum 3 vuotta sitten
vanhempi
commit
b11a9e66b4
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      lib/parse/parse.c

+ 5
- 0
lib/parse/parse.c Näytä tiedosto

@@ -41,6 +41,11 @@ static int parse_function_impl(
first = 0;
}

// Empty function bodies must still return something; just return 0 (none)
if (first) {
l2_gen_push(gen, 0);
}

l2_gen_ret(gen);
return 0;
}

Loading…
Peruuta
Tallenna