Commit fd26dea9 authored by firenox89's avatar firenox89 Committed by Marcel Stör
Browse files

fix #2565 by inverting the grb2hsv argcheck condition (#3076)

parent c50b4789
......@@ -217,7 +217,7 @@ static int cu_grb2hsv(lua_State *L) {
const int r = luaL_checkint(L, 2);
const int b = luaL_checkint(L, 3);
luaL_argcheck(L, g == r && g == b, 1, "greyscale value cannot be converted to hsv");
luaL_argcheck(L, g != r || g != b, 1, "greyscale value cannot be converted to hsv");
uint32_t hsv = grb2hsv(g, r, b);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment