Modified WCMD_filesize64 to handle unsigned numbers.

This commit is contained in:
Gregg Mattinson 2002-07-05 22:47:56 +00:00 committed by Alexandre Julliard
parent a010932a3f
commit d0f8bf3743

View file

@ -29,7 +29,7 @@
int WCMD_dir_sort (const void *a, const void *b);
void WCMD_list_directory (char *path, int level);
char * WCMD_filesize64 (__int64 free);
char * WCMD_filesize64 (__uint64 free);
char * WCMD_strrev (char *buff);
@ -43,7 +43,7 @@ extern DWORD errorlevel;
int file_total, dir_total, line_count, page_mode, recurse, wide, bare,
max_width;
__int64 byte_total;
__uint64 byte_total;
/*****************************************************************************
* WCMD_directory
@ -363,10 +363,10 @@ ULARGE_INTEGER byte_count, file_size;
* FIXME: There must be a better algorithm!
*/
char * WCMD_filesize64 (__int64 n) {
char * WCMD_filesize64 (__uint64 n) {
__int64 q;
int r, i;
__uint64 q;
uint r, i;
char *p;
static char buff[32];