Skip Menu |
 

This queue is for tickets about the Sort-Key CPAN distribution.

Report information
The Basics
Id: 131704
Status: new
Priority: 0/
Queue: Sort-Key

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Wrong format specifiers used for croak
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-23070-1581055232-461.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1280
Download (untitled) / with headers
text/plain 1.2k
When installing Sort::Key on Ubuntu on Windows Subsystem for Linux (WSL), I get the following warnings: Key.xs: In function ‘_keysort’: Key.xs:237:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘IV {aka long int}’ [-Wformat=] croak("unsupported sort type %d", type); ^~~~~~~~~~~~~~~~~~~~~~~~~~ Key.xs: In function ‘_multikeysort’: Key.xs:547:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘STRLEN {aka long unsigned int}’ [-Wformat=] croak("wrong number of results returned " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Key.xs:547:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘IV {aka long int}’ [-Wformat=] At Key.xs:237, croak("unsupported sort type %d", type); should be croak("unsupported sort type %" IVdf, type); At Key.xs:547, croak("wrong number of results returned " "from multikey generation sub " "(%d expected, %d returned)", nkeys, count); should be croak("wrong number of results returned " "from multikey generation sub " "(%zu expected, %" IVdf " returned)", nkeys, count);


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.