Advertisement
jackpoz

Untitled

Aug 4th, 2011
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.58 KB | None | 0 0
  1. Index: src/scripts/src/lualib/lobject.h
  2. ===================================================================
  3. --- src/scripts/src/lualib/lobject.h    (revision 4422)
  4. +++ src/scripts/src/lualib/lobject.h    (working copy)
  5. @@ -100,7 +100,7 @@
  6.  #define bvalue(o)  check_exp(ttisboolean(o), (o)->value.b)
  7.  #define thvalue(o) check_exp(ttisthread(o), &(o)->value.gc->th)
  8.  
  9. -#define l_isfalse(o)   (ttisnil(o) || (ttisboolean(o) && bvalue(o) == 0))
  10. +#define l_isfalse(o)   (ttisnil(o) || (ttisboolean(o) && bvalue(o) == 0) || (ttisnumber(o) && nvalue(o) == 0))
  11.  
  12.  /*
  13.  ** for internal debug only
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement