aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 67ba2b62..15ae4893 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.71 2001/10/25 19:14:14 roberto Exp $ 2** $Id: lobject.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -57,6 +57,8 @@ int luaO_equalObj (const TObject *t1, const TObject *t2) {
57 return nvalue(t1) == nvalue(t2); 57 return nvalue(t1) == nvalue(t2);
58 case LUA_TNIL: 58 case LUA_TNIL:
59 return 1; 59 return 1;
60 case LUA_TBOOLEAN:
61 return bvalue(t1) == bvalue(t2);
60 default: /* all other types are equal if pointers are equal */ 62 default: /* all other types are equal if pointers are equal */
61 return tsvalue(t1) == tsvalue(t2); 63 return tsvalue(t1) == tsvalue(t2);
62 } 64 }