Update cute_png.c

This commit is contained in:
blueloveTH 2025-12-07 21:41:28 +08:00
parent 98bf9c0c81
commit cc95299cb4

View File

@ -95,7 +95,7 @@ static bool cute_png_Image__height(int argc, py_Ref argv) {
} }
static bool cute_png_Image__setpixel(int argc, py_Ref argv) { static bool cute_png_Image__setpixel(int argc, py_Ref argv) {
PY_CHECK_ARGC(3); PY_CHECK_ARGC(4);
cp_image_t* image = py_touserdata(argv); cp_image_t* image = py_touserdata(argv);
PY_CHECK_ARG_TYPE(1, tp_int); PY_CHECK_ARG_TYPE(1, tp_int);
PY_CHECK_ARG_TYPE(2, tp_int); PY_CHECK_ARG_TYPE(2, tp_int);