From 71446f2da4f4887cb6b60b4ddee4754faee70d3d Mon Sep 17 00:00:00 2001 From: David Mitchell Date: Thu, 13 Dec 2012 13:24:58 +0000 Subject: [PATCH] B.xs: silence clang warning PADOFFSET is unsigned, so checking that it's >= 0 is pointless. --- ext/B/B.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/B/B.xs b/ext/B/B.xs index 1a6e257f29..bf7e9b12f0 100644 --- a/ext/B/B.xs +++ b/ext/B/B.xs @@ -1942,7 +1942,7 @@ PadlistARRAYelt(padlist, idx) B::PADLIST padlist PADOFFSET idx PPCODE: - if (idx >= 0 && PadlistMAX(padlist) >= 0 + if (PadlistMAX(padlist) >= 0 && idx <= PadlistMAX(padlist)) XPUSHs(make_sv_object(aTHX_ (SV *)PadlistARRAY(padlist)[idx])); -- 2.34.1