mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Fixed heaptest.c compiler warnings in a way that's better than PR #1621.
This fix adds "unsigned" to one line instead of removing it from several lines.
This commit is contained in:
parent
f1e70517ec
commit
5cad3ce55a
@ -6,18 +6,18 @@
|
||||
|
||||
|
||||
|
||||
static char* V[256];
|
||||
static unsigned char* V[256];
|
||||
|
||||
|
||||
|
||||
static char* Alloc (void)
|
||||
static unsigned char* Alloc (void)
|
||||
/* Allocate a random sized chunk of memory */
|
||||
{
|
||||
/* Determine the size */
|
||||
unsigned char Size = (((unsigned char)rand()) & 0x7F) + 1;
|
||||
|
||||
/* Allocate memory */
|
||||
char* P = malloc (Size);
|
||||
unsigned char* P = malloc (Size);
|
||||
|
||||
/* Set the string to a defined value. We use the size, since this will
|
||||
** also allow us to retrieve it later.
|
||||
@ -33,7 +33,7 @@ static char* Alloc (void)
|
||||
|
||||
|
||||
|
||||
static void Free (char* P)
|
||||
static void Free (unsigned char* P)
|
||||
/* Check a memory block and free it */
|
||||
{
|
||||
unsigned char I;
|
||||
@ -234,6 +234,3 @@ int main (void)
|
||||
/* Done */
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user