Re: [cc65] Problem assigning structs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-11-11 18:25:00
Hi!

On Sat, Nov 10, 2007 at 11:18:58PM +0100, Andreas Koch wrote:
> Is this a bug or am i doing something wrong here?

It is a bug. I will have to check older versions of the compiler to see when
it was introduced, but the current snapshot does have it, too.

Please use
                
        #include <string.h>

        memcpy (&str2, &str1, sizeof (str2));

as a workaround until this is fixed.

Thanks for the report!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 11 18:25:17 2007

This archive was generated by hypermail 2.1.8 : 2007-11-11 18:25:21 CET