Skip to content

Commit

Permalink
Align luaV_tofloat with standalone Singe codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtBagXon committed Nov 1, 2020
1 parent 0cc0426 commit d629696
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/game/singe/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ const TValue *luaV_tofloat (const TValue *obj, TValue *n) {
if (ttisnumber(obj)) return obj;
if (ttisstring(obj) && luaO_str2d(svalue(obj), &num)) {
setnvalue(n, num);
return n;
}
else {
else
setnvalue(n, 0);
return n;
}
return n;
}

const TValue *luaV_tonumber (const TValue *obj, TValue *n) {
Expand Down

0 comments on commit d629696

Please sign in to comment.