From c3ec98bd8e84acf9f4a41d49301330ad9429b38a Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Wed, 4 Sep 2002 23:30:56 +0000 Subject: [PATCH] fix compiler warnings --- include/grdef.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/grdef.h b/include/grdef.h index bf17ff05..2993ee26 100644 --- a/include/grdef.h +++ b/include/grdef.h @@ -1,4 +1,4 @@ -/* $Id: grdef.h,v 1.6 2002-09-04 23:13:14 btb Exp $ */ +/* $Id: grdef.h,v 1.7 2002-09-04 23:30:56 btb Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -78,7 +78,7 @@ extern unsigned int gr_var_color; extern unsigned int gr_var_bwidth; extern unsigned char * gr_var_bitmap; -void gr_linear_movsd( ubyte * source, ubyte * dest, int nbytes); +void gr_linear_movsd( ubyte * source, ubyte * dest, unsigned int nbytes); #ifndef NO_ASM // This code aligns edi so that the destination is aligned to a dword boundry before rep movsd @@ -105,7 +105,7 @@ void gr_linear_movsd( ubyte * source, ubyte * dest, int nbytes); #elif defined __GNUC__ -inline void gr_linear_movsd(ubyte *src, ubyte *dest, int num_pixels) { +inline void gr_linear_movsd(ubyte *src, ubyte *dest, unsigned int num_pixels) { int dummy[3]; __asm__ __volatile__ ( " cld;" @@ -131,7 +131,7 @@ inline void gr_linear_movsd(ubyte *src, ubyte *dest, int num_pixels) { #elif defined _MSC_VER -__inline void gr_linear_movsd(ubyte *src, ubyte *dest, int num_pixels) +__inline void gr_linear_movsd(ubyte *src, ubyte *dest, unsigned int num_pixels) { __asm { mov esi, [src] -- 2.39.2