This website works better with JavaScript.
Home
Explore
Help
Sign In
mort
/
lang2
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
empty functions must return 0
master
Martin Dørum
3 years ago
parent
abb1277e83
commit
b11a9e66b4
1 changed files
with
5 additions
and
0 deletions
Split View
Show Diff Stats
5
0
lib/parse/parse.c
+ 5
- 0
lib/parse/parse.c
View File
@@ -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;
}
Write
Preview
Loading…
Cancel
Save