From 4bf23c67bb1f03652416cb91610b8f61fc7580c6 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 19 Jun 2014 14:44:50 +0200 Subject: [PATCH] Bugfix: wrong input validation in set_layer_height_ranges(). #2105 --- xs/xsp/my.map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xsp/my.map b/xs/xsp/my.map index 27c85fe49..6bc057a6a 100644 --- a/xs/xsp/my.map +++ b/xs/xsp/my.map @@ -252,7 +252,7 @@ T_LAYER_HEIGHT_RANGES coordf_t vals[3]; for (unsigned int j = 0; j < 3; ++j) { SV *elem_elem = *av_fetch(elemAV, j, 0); - if (!SvNOK(elem_elem)) { + if (!looks_like_number(elem_elem)) { Perl_croak( aTHX_ \"%s: layer ranges and heights must be numbers\", ${$ALIAS?\q[GvNAME(CvGV(cv))]:\qq[\"$pname\"]});