@@ -371,7 +371,7 @@ static inline Node *mainpositionfromnode (const Table *t, Node *nd) {
371371** anything. (In particular, 'next' will return some other valid item
372372** on the table or nil.)
373373*/
374- static int equalkey (const TValue *k1, const Node *n2, int deadok) {
374+ static bool equalkey (const TValue *k1, const Node *n2, int deadok) {
375375 if (rawtt (k1) != n2->getKeyType ()) { /* not the same variants? */
376376 if (n2->isKeyShrStr () && ttislngstring (k1)) {
377377 /* an external string can be equal to a short-string key */
@@ -382,12 +382,12 @@ static int equalkey (const TValue *k1, const Node *n2, int deadok) {
382382 return gcvalue (k1) == gcvalueraw (n2->getKeyValue ());
383383 }
384384 else
385- return 0 ; /* otherwise, different variants cannot be equal */
385+ return false ; /* otherwise, different variants cannot be equal */
386386 }
387387 else { /* equal variants */
388388 switch (n2->getKeyType ()) {
389389 case LUA_VNIL: case LUA_VFALSE: case LUA_VTRUE:
390- return 1 ;
390+ return true ;
391391 case LUA_VNUMINT:
392392 return (ivalue (k1) == n2->getKeyIntValue ());
393393 case LUA_VNUMFLT:
@@ -1132,7 +1132,7 @@ static TValue *getintfromhash (Table *t, lua_Integer key) {
11321132}
11331133
11341134
1135- static int hashkeyisempty (Table *t, lua_Unsigned key) {
1135+ static bool hashkeyisempty (Table *t, lua_Unsigned key) {
11361136 const TValue *val = getintfromhash (t, l_castU2S (key));
11371137 return isempty (val);
11381138}
0 commit comments