aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/llthread.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/llthread.c b/src/llthread.c
index 74784ae..c2831eb 100644
--- a/src/llthread.c
+++ b/src/llthread.c
@@ -4,8 +4,8 @@
4 4
5#define LLTHREAD_VERSION_MAJOR 0 5#define LLTHREAD_VERSION_MAJOR 0
6#define LLTHREAD_VERSION_MINOR 1 6#define LLTHREAD_VERSION_MINOR 1
7#define LLTHREAD_VERSION_PATCH 3 7#define LLTHREAD_VERSION_PATCH 4
8// #define LLTHREAD_VERSION_COMMENT "dev" 8#define LLTHREAD_VERSION_COMMENT "dev"
9 9
10#ifndef USE_PTHREAD 10#ifndef USE_PTHREAD
11# include <windows.h> 11# include <windows.h>
@@ -705,9 +705,9 @@ static const struct luaL_Reg l_llthread_meth[] = {
705//{ version 705//{ version
706 706
707static int l_llthread_version(lua_State *L){ 707static int l_llthread_version(lua_State *L){
708 lua_pushnumber(L, LLTHREAD_VERSION_MAJOR); 708 lua_pushinteger(L, LLTHREAD_VERSION_MAJOR);
709 lua_pushnumber(L, LLTHREAD_VERSION_MINOR); 709 lua_pushinteger(L, LLTHREAD_VERSION_MINOR);
710 lua_pushnumber(L, LLTHREAD_VERSION_PATCH); 710 lua_pushinteger(L, LLTHREAD_VERSION_PATCH);
711#ifdef LLTHREAD_VERSION_COMMENT 711#ifdef LLTHREAD_VERSION_COMMENT
712 if(LLTHREAD_VERSION_COMMENT[0]){ 712 if(LLTHREAD_VERSION_COMMENT[0]){
713 lua_pushliteral(L, LLTHREAD_VERSION_COMMENT); 713 lua_pushliteral(L, LLTHREAD_VERSION_COMMENT);
@@ -718,11 +718,11 @@ static int l_llthread_version(lua_State *L){
718} 718}
719 719
720static int l_llthread_push_version(lua_State *L){ 720static int l_llthread_push_version(lua_State *L){
721 lua_pushnumber(L, LLTHREAD_VERSION_MAJOR); 721 lua_pushinteger(L, LLTHREAD_VERSION_MAJOR);
722 lua_pushliteral(L, "."); 722 lua_pushliteral(L, ".");
723 lua_pushnumber(L, LLTHREAD_VERSION_MINOR); 723 lua_pushinteger(L, LLTHREAD_VERSION_MINOR);
724 lua_pushliteral(L, "."); 724 lua_pushliteral(L, ".");
725 lua_pushnumber(L, LLTHREAD_VERSION_PATCH); 725 lua_pushinteger(L, LLTHREAD_VERSION_PATCH);
726#ifdef LLTHREAD_VERSION_COMMENT 726#ifdef LLTHREAD_VERSION_COMMENT
727 if(LLTHREAD_VERSION_COMMENT[0]){ 727 if(LLTHREAD_VERSION_COMMENT[0]){
728 lua_pushliteral(L, "-"LLTHREAD_VERSION_COMMENT); 728 lua_pushliteral(L, "-"LLTHREAD_VERSION_COMMENT);