From: cuz Date: Tue, 2 Oct 2001 17:20:06 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~2591 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f3af1c09d8b9a6836dc7124a62988672e134426;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@997 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/cc65.sgml b/doc/cc65.sgml index e5785cc05..9ddefe485 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -790,7 +790,7 @@ Or, to access a struct member of a static variable: unsigned char color; } pixel_t; static pixel_t pixel; - __asm__ ("ldy #%b", offsetof(pixel, color)); + __asm__ ("ldy #%b", offsetof(pixel_t, color)); __asm__ ("lda %v,y", pixel);