mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fixed a C99ism.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5614 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3f25b9d6a2
commit
1c91618a5d
@ -87,13 +87,16 @@ Palette* NewMonochromePalette (void)
|
||||
Palette* DupPalette (const Palette* P)
|
||||
/* Create a copy of a palette */
|
||||
{
|
||||
Palette* N;
|
||||
|
||||
|
||||
/* Allow to pass a NULL palette */
|
||||
if (P == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Create a new palette */
|
||||
Palette* N = NewPalette (P->Count);
|
||||
N = NewPalette (P->Count);
|
||||
|
||||
/* Copy the palette data */
|
||||
memcpy (N->Entries, P->Entries, P->Count * sizeof (P->Entries[0]));
|
||||
|
Loading…
Reference in New Issue
Block a user