diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-04-02 23:03:09 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-04-02 23:03:09 +0000 |
commit | 7ec50f12252b4dfb97f3249ccf05a771b98785c1 (patch) | |
tree | 279e4e8bd7b940368331a43869c165de9637ae99 /source/cl_draw.c | |
parent | 80e48417564f1ce50a39a7c552ad95e651362c1f (diff) |
Use size_t instead of int where possible.
Added initial support for Win64 port.
Diffstat (limited to 'source/cl_draw.c')
-rw-r--r-- | source/cl_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/cl_draw.c b/source/cl_draw.c index e674dda..eddb357 100644 --- a/source/cl_draw.c +++ b/source/cl_draw.c @@ -67,7 +67,7 @@ STAT PROGRAMS TO TEXT #define TH_WIDTH 80 #define TH_HEIGHT 40 -static void TH_DrawString( char *dst, int x, int y, char *src, int len ) { +static void TH_DrawString( char *dst, int x, int y, char *src, size_t len ) { int c; if( x + len > TH_WIDTH ) { @@ -94,7 +94,7 @@ static void TH_DrawString( char *dst, int x, int y, char *src, int len ) { } } -static void TH_DrawCenterString( char *dst, int x, int y, char *src, int len ) { +static void TH_DrawCenterString( char *dst, int x, int y, char *src, size_t len ) { x -= len / 2; if( x < 0 ) { src -= x; @@ -128,8 +128,8 @@ static void TH_DrawLayoutString( char *dst, const char *s ) { int x, y; int value; char *token; - int width, len; - int index; + size_t len; + int width, index; clientinfo_t *ci; if( !s[0] ) @@ -341,7 +341,7 @@ static void SCR_ScoreShot_f( void ) { } else { for( i = 0; i < 1000; i++ ) { Com_sprintf( path, sizeof( path ), SCORESHOTS_DIRECTORY "/quake%03d.txt", i ); - if( FS_LoadFileEx( path, NULL, FS_PATH_GAME ) == -1 ) { + if( FS_LoadFileEx( path, NULL, FS_PATH_GAME ) == INVALID_LENGTH ) { break; // file doesn't exist } } |