summaryrefslogtreecommitdiff
path: root/src/lua5
diff options
context:
space:
mode:
authorscuri <scuri>2011-08-29 16:21:30 +0000
committerscuri <scuri>2011-08-29 16:21:30 +0000
commit7f7f2c488079f2929f8295eccb491cbe3b40f301 (patch)
tree689a8f0665f8af857378d4faf84ab8c8c2916991 /src/lua5
parenta2596ae54440d4d64f6df207298ab5c61513f1fa (diff)
Fixed: im.ProcessUniformErrThreshold, im.ProcessMinMaxThreshold and im.ProcessPercentThreshold return value in Lua.
Diffstat (limited to 'src/lua5')
-rw-r--r--src/lua5/imlua_process.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua5/imlua_process.c b/src/lua5/imlua_process.c
index bb81512..1e31617 100644
--- a/src/lua5/imlua_process.c
+++ b/src/lua5/imlua_process.c
@@ -2,7 +2,7 @@
* \brief IM Lua 5 Binding
*
* See Copyright Notice in im_lib.h
- * $Id: imlua_process.c,v 1.14 2011/05/02 19:23:57 scuri Exp $
+ * $Id: imlua_process.c,v 1.15 2011/08/29 16:21:31 scuri Exp $
*/
#include <memory.h>
@@ -2766,7 +2766,7 @@ static int imluaProcessUniformErrThreshold (lua_State *L)
imlua_checkcolorspace(L, 2, dst_image, IM_BINARY);
imlua_matchsize(L, src_image, dst_image);
- lua_pushboolean(L, imProcessUniformErrThreshold(src_image, dst_image));
+ lua_pushinteger(L, imProcessUniformErrThreshold(src_image, dst_image));
return 1;
}
@@ -2801,7 +2801,7 @@ static int imluaProcessPercentThreshold (lua_State *L)
imlua_checkcolorspace(L, 2, dst_image, IM_BINARY);
imlua_matchsize(L, src_image, dst_image);
- lua_pushboolean(L, imProcessPercentThreshold(src_image, dst_image, percent));
+ lua_pushinteger(L, imProcessPercentThreshold(src_image, dst_image, percent));
return 1;
}
@@ -2817,7 +2817,7 @@ static int imluaProcessOtsuThreshold (lua_State *L)
imlua_checkcolorspace(L, 2, dst_image, IM_BINARY);
imlua_matchsize(L, src_image, dst_image);
- lua_pushnumber(L, imProcessOtsuThreshold(src_image, dst_image));
+ lua_pushinteger(L, imProcessOtsuThreshold(src_image, dst_image));
return 1;
}
@@ -2834,7 +2834,7 @@ static int imluaProcessMinMaxThreshold (lua_State *L)
imlua_checkcolorspace(L, 2, dst_image, IM_BINARY);
imlua_matchsize(L, src_image, dst_image);
- lua_pushboolean(L, imProcessMinMaxThreshold(src_image, dst_image));
+ lua_pushinteger(L, imProcessMinMaxThreshold(src_image, dst_image));
return 1;
}