[pcre-dev] [Bug 707] Patch: incorrect printf flags, comparin…

Page principale
Supprimer ce message
Auteur: Yang Zhang
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 707] Patch: incorrect printf flags, comparing string literals
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=707




--- Comment #3 from Yang Zhang <yang.eximbugs@???> 2008-05-14 16:11:35 ---
This came up for me because I'm on x86_64 which has 64-bit pointers. Hence the
difference between two pointers (ptrdiff_t) can be 64-bit, so %d would be too
small for printing these. %td is for ptrdiff_t (it instructs printf to parse
the correct size for any architecture). Perhaps it's a GNU extension; I'm not
sure (I just found it in the man page on my GNU/Linux box).


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email