a pointer to an array is the array itself

This commit is contained in:
Laurent Vivier 2007-03-22 17:02:00 +00:00
parent a60529b2fd
commit 64e1ab4983
3 changed files with 5 additions and 5 deletions

View File

@ -386,12 +386,12 @@ vga_init()
InitGraf(&qd.thePort);
ret = glue_display_properties((unsigned long*)&vga.base,
ret = glue_display_properties((unsigned long*)vga.base,
&vga.row_bytes,
&vga.width,
&vga.height,
&vga.depth,
(unsigned long*)&vga.video);
(unsigned long*)vga.video);
if (ret)
{
vga.base = qd.screenBits.baseAddr;

View File

@ -19,7 +19,7 @@ OSErr SerGetBuf(short refNum, long *count)
res = PBStatusSync((ParmBlkPtr)&param);
*count = *(long*)&param.csParam;
*count = *(long*)param.csParam;
return res;
}

View File

@ -387,12 +387,12 @@ vga_init()
InitGraf(&qd.thePort);
ret = glue_display_properties((unsigned long*)&vga.base,
ret = glue_display_properties((unsigned long*)vga.base,
&vga.row_bytes,
&vga.width,
&vga.height,
&vga.depth,
(unsigned long*)&vga.video);
(unsigned long*)vga.video);
if (ret)
{
vga.base = qd.screenBits.baseAddr;