Silence this warning:
mkdtemp.c:52: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘long int’
Signed-off-by: Wincent Colaiuta <win@wincent.com>
/* create temporary storage */
c_template = malloc(RSTRING_LEN(template) + 1);
if (!c_template)
- rb_raise(rb_eNoMemError, "failed to allocate %d bytes of template storage", RSTRING_LEN(template) + 1);
+ rb_raise(rb_eNoMemError, "failed to allocate %ld bytes of template storage", RSTRING_LEN(template) + 1);
strncpy(c_template, RSTRING_PTR(template), RSTRING_LEN(template));
c_template[RSTRING_LEN(template)] = 0; /* NUL-terminate */