From: Michael H. <mic...@ea...> - 2000-02-17 04:36:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm going to try and track this down, but I though people might be interested in the problem. This code: unsigned a; void puts(char *s) { a = sizeof(s); printf(s); } Generates a = 2 hl = s push hl call printf pop l (ie parmBytes = 1 instead of 2) But changing the printf line to include a redundent cast: printf((char *)s) generates ... push hl call printf pop hl (parmBytes = 2, which is correct) - -- Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.0 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE4q3ojUejL3SuzxEgRAjTcAJ9iZR5ZpMgusw0zDJz5QmA8rSDrswCdHmZ/ EPRqxmvTS2F5nhArvVxTIhk= =cgft -----END PGP SIGNATURE----- |