fix(library/kernel_bindings): style

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-17 13:44:51 -07:00
parent 53e02a902c
commit f7bc5ac514

View file

@ -90,9 +90,11 @@ template<level (*F)(level const & l1, level const & l2)>
static int mk_level_max_core(lua_State * L) {
int nargs = lua_gettop(L);
level r;
if (nargs == 0) r = mk_level_zero();
else if (nargs == 1) r = to_level_ext(L, 1);
else {
if (nargs == 0) {
r = mk_level_zero();
} else if (nargs == 1) {
r = to_level_ext(L, 1);
} else {
r = F(to_level_ext(L, nargs - 1), to_level_ext(L, nargs));
for (int i = nargs - 2; i >= 1; i--)
r = F(to_level_ext(L, i), r);