summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorMikhail Galanin <mgalanin@mimecast.com>2018-08-15 16:32:26 +0100
committerMikhail Galanin <mgalanin@mimecast.com>2018-08-15 16:32:26 +0100
commitf368a0a51e7073bdf244bf1a959fb5ccb0389b9b (patch)
treede0eee22af55c38148d6415951b1253f7b874f49 /src/lua/lua_common.h
parentb29e8792c6be01be944223a0eea7ba373b151327 (diff)
parent938a0dba32a7f1632c3e14b92d986384aff19d7a (diff)
downloadrspamd-f368a0a51e7073bdf244bf1a959fb5ccb0389b9b.tar.gz
rspamd-f368a0a51e7073bdf244bf1a959fb5ccb0389b9b.zip
Merge branch 'master' into lua-coroutine-model
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 149642597..40d752704 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -22,7 +22,7 @@
#define LUA_ENUM(L, name, val) \
lua_pushlstring (L, # name, sizeof(# name) - 1); \
- lua_pushnumber (L, val); \
+ lua_pushinteger (L, val); \
lua_settable (L, -3);
#if LUA_VERSION_NUM > 501 && !defined LUA_COMPAT_MODULE