From: Jonathan "Duke" Leto Date: Wed, 10 Oct 2012 20:23:39 +0000 (-0700) Subject: Fix compiler warnings from clang 2.1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6fc5344fdcf011aa6c0969473fc1eabd87d95f67;p=p5sagit%2FDevel-Size.git Fix compiler warnings from clang 2.1 This fixes the following warnings: SizeMe.xs:273:44: warning: conversion specifies type 'int' but the argument has type 'I32' (aka 'long') SizeMe.xs:1133:50: warning: conversion specifies type 'int' but the argument has type 'U32' --- diff --git a/SizeMe.xs b/SizeMe.xs index 3178176..823a525 100644 --- a/SizeMe.xs +++ b/SizeMe.xs @@ -270,7 +270,7 @@ np_print_node_name(pTHX_ FILE *fp, npath_node_t *npath_node) const char *typename = (type == SVt_IV && SvROK(sv)) ? "RV" : svtypenames[type]; fprintf(fp, "SV(%s)", typename); switch(type) { /* add some useful details */ - case SVt_PVAV: fprintf(fp, " fill=%d/%ld", av_len((AV*)sv), AvMAX((AV*)sv)); break; + case SVt_PVAV: fprintf(fp, " fill=%ld/%ld", av_len((AV*)sv), AvMAX((AV*)sv)); break; case SVt_PVHV: fprintf(fp, " fill=%ld/%ld", HvFILL((HV*)sv), HvMAX((HV*)sv)); break; } break; @@ -1130,7 +1130,7 @@ sv_size(pTHX_ struct state *const st, pPATH, const SV * const orig_thing, type = SvTYPE(thing); if (type > SVt_LAST) { - warn("Devel::Size: Unknown variable type: %d encountered\n", type); + warn("Devel::Size: Unknown variable type: %u encountered\n", type); return 0; } NPathPushNode(thing, NPtype_SV);