[patch] Compile failures on amd64/gcc 4.0

Thiago Macieira thiago at macieira.info
Sat Jan 8 16:06:58 GMT 2005


Mickael Marchand wrote:
>+      int bits = (ptrdiff_t)syms->modsyms[res]-1;

Why don't you declare those variables as ptrdiff_t as well?

gcc may not display a warning about loss of precision, but it will happen 
nonetheless.
-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

3. Ac seo woruld wearð geborod, swá se Scieppend cweað "Gewurde Unix" and 
wundor fremede and him "Unix" genemned, þæt is se rihtendgesamnung.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050108/ee7d481c/attachment.sig>


More information about the kde-core-devel mailing list