This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix *printf %ld handling for microperl (and other obscure platforms)
authorNicholas Clark <nick@ccl4.org>
Wed, 23 Mar 2011 12:18:20 +0000 (12:18 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 28 Mar 2011 09:21:48 +0000 (10:21 +0100)
commitd5b9c847979c6f2305b186e446b045fa6af209ee
treec8c64a0eea294cbbd4899215b8b8abc3b67203ec
parent1295f46c24c81f9da55f6c9e00e77ddb9cc49e34
Fix *printf %ld handling for microperl (and other obscure platforms)

07208e09d4435b4e accidentally moved the implicit q = q + 1 into conditionally
compiled code, which is compiled most everywhere else, except miniperl. Without
the increment of q, formats such as 'ld' were not being recognised as formats.
This was noticed because the tokeniser implements __LINE__ by converting to a
string using %ld.
sv.c