Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
scuri committed Jun 5, 2013
1 parent 8295e63 commit 5a7a4bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lua5/imlua_process.c
Expand Up @@ -2242,8 +2242,9 @@ static int imluaProcessQuantizeGrayUniform (lua_State *L)
int grays = luaL_checkint(L, 3);

imlua_checktype(L, 1, src_image, IM_GRAY, IM_BYTE);
imlua_checktype(L, 2, dst_image, IM_GRAY, IM_BYTE);
imlua_match(L, src_image, dst_image);
if (dst_image->color_space!=IM_MAP)
imlua_checktype(L, 2, dst_image, IM_GRAY, IM_BYTE);
imlua_matchsize(L, src_image, dst_image);

imProcessQuantizeGrayUniform(src_image, dst_image, grays);
return 0;
Expand Down

0 comments on commit 5a7a4bd

Please sign in to comment.