summaryrefslogtreecommitdiff
path: root/sysutils/conky/files/patch-src_luamm.cc
blob: 0bbd10d54b1d1c21fd0a0ab2aaa814d0a72fd963 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- src/luamm.cc.orig	2019-01-08 01:26:24 UTC
+++ src/luamm.cc
@@ -336,7 +336,7 @@ int state::gc(int what, int data) {
   pushinteger(what);
   pushinteger(data);
   call(2, 1, 0);
-  assert(isnumber(-1));
+  assert(isanumber(-1));
   int r = tointeger(-1);
   pop();
   return r;
@@ -411,7 +411,7 @@ bool state::next(int index) {
 
   call(2, MULTRET, 0);
 
-  assert(isnumber(-1));
+  assert(isanumber(-1));
   int r = tointeger(-1);
   pop();
   return r != 0;
@@ -451,7 +451,7 @@ bool state::safe_compare(lua_CFunction trampoline, int
   pushvalue(index1);
   pushvalue(index2);
   call(2, 1, 0);
-  assert(isnumber(-1));
+  assert(isanumber(-1));
   int r = tointeger(-1);
   pop();
   return r != 0;