From 817f57df863fd2aae7647e617f8efccfa9a5f631 Mon Sep 17 00:00:00 2001 From: ser1zw Date: Sun, 2 Jan 2011 05:57:46 +0900 Subject: [PATCH] fixed the format of rb_raise() in rb_sub_rect() in cvmat.cpp --- ext/cvmat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/cvmat.cpp b/ext/cvmat.cpp index 8a99856..879d417 100644 --- a/ext/cvmat.cpp +++ b/ext/cvmat.cpp @@ -905,7 +905,7 @@ rb_sub_rect(VALUE self, VALUE args) area.height = NUM2INT(RARRAY_PTR(args)[3]); break; default: - rb_raise(rb_eArgError, "wrong number of arguments (%d of 1 or 2 or 4)", RARRAY_LEN(args)); + rb_raise(rb_eArgError, "wrong number of arguments (%ld of 1 or 2 or 4)", RARRAY_LEN(args)); } return DEPEND_OBJECT(rb_klass, cvGetSubRect(CVARR(self), CVALLOC(CvMat), area),