mirror of
https://github.com/colindean/optar.git
synced 2025-03-11 22:17:40 +13:00
Explicitly declares variable types for ints
GCC 7 discourages implicit typing
This commit is contained in:
parent
a3f7e4765f
commit
9c8379c254
4
optar.c
4
optar.c
@ -109,7 +109,7 @@ void border(void)
|
|||||||
memset(ptr,0,BORDER*WIDTH);
|
memset(ptr,0,BORDER*WIDTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cross(x,y)
|
void cross(int x, int y)
|
||||||
{
|
{
|
||||||
unsigned char *ptr=ary+y*WIDTH+x;
|
unsigned char *ptr=ary+y*WIDTH+x;
|
||||||
unsigned c;
|
unsigned c;
|
||||||
@ -132,7 +132,7 @@ void crosses(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* x is in the range 0 to DATA_WIDTH-1 */
|
/* x is in the range 0 to DATA_WIDTH-1 */
|
||||||
void text_block (destx, srcx, width)
|
void text_block (int destx, int srcx, int width)
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
unsigned char *srcptr;
|
unsigned char *srcptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user