diff options
author | scuri <scuri> | 2009-08-04 21:35:15 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-08-04 21:35:15 +0000 |
commit | 08e5c41d42be826c18480b277f644a864f237b9b (patch) | |
tree | cf666b0bb0f2d38b2f650751adb081b6f2d60af3 /src/lua5/imlua_convert.c | |
parent | 26990cb2d1f55272c6f1d09dcc0f3062dc1e6cf8 (diff) |
*** empty log message ***
Diffstat (limited to 'src/lua5/imlua_convert.c')
-rw-r--r-- | src/lua5/imlua_convert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua5/imlua_convert.c b/src/lua5/imlua_convert.c index 5ec73c9..96b8429 100644 --- a/src/lua5/imlua_convert.c +++ b/src/lua5/imlua_convert.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_convert.c,v 1.1 2008/10/17 06:16:32 scuri Exp $ + * $Id: imlua_convert.c,v 1.2 2009/08/04 21:35:26 scuri Exp $ */ #include "im.h" @@ -25,7 +25,7 @@ static int imluaConvertDataType (lua_State *L) imImage* dst_image = imlua_checkimage(L, 2); int cpx2real = luaL_checkint(L, 3); float gamma = (float) luaL_checknumber(L, 4); - int abssolute = luaL_checkint(L, 5); + int abssolute = lua_toboolean(L, 5); int cast_mode = luaL_checkint(L, 6); imlua_matchcolorspace(L, src_image, dst_image); @@ -55,7 +55,7 @@ static int imluaConvertToBitmap (lua_State *L) imImage* dst_image = imlua_checkimage(L, 2); int cpx2real = luaL_checkint(L, 3); float gamma = (float) luaL_checknumber(L, 4); - int abssolute = luaL_checkint(L, 5); + int abssolute = lua_toboolean(L, 5); int cast_mode = luaL_checkint(L, 6); imlua_matchsize(L, src_image, dst_image); |