D20149: Fix compilation

Stefan Brüns noreply at phabricator.kde.org
Mon Apr 1 14:15:55 BST 2019


bruns added a comment.


  Although s_magic **decays** to a char*, it **is not** a char*. char[n] is a type distinct from char*
  
  From e.g. man strlen
  
    char string[32] = "hello, world";
    char *ptr = string;
    sizeof (string)
        ⇒ 32
    sizeof (ptr)
        ⇒ 4  /* (on a machine with 4 byte pointers) */

REPOSITORY
  R287 KImageFormats

REVISION DETAIL
  https://phabricator.kde.org/D20149

To: aacid, svuorela
Cc: bruns, svuorela, apol, pino, kde-frameworks-devel, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190401/097c08c3/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list