Modified WCMD_filesize64 to handle unsigned numbers.
This commit is contained in:
parent
a010932a3f
commit
d0f8bf3743
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
int WCMD_dir_sort (const void *a, const void *b);
|
int WCMD_dir_sort (const void *a, const void *b);
|
||||||
void WCMD_list_directory (char *path, int level);
|
void WCMD_list_directory (char *path, int level);
|
||||||
char * WCMD_filesize64 (__int64 free);
|
char * WCMD_filesize64 (__uint64 free);
|
||||||
char * WCMD_strrev (char *buff);
|
char * WCMD_strrev (char *buff);
|
||||||
|
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ extern DWORD errorlevel;
|
||||||
|
|
||||||
int file_total, dir_total, line_count, page_mode, recurse, wide, bare,
|
int file_total, dir_total, line_count, page_mode, recurse, wide, bare,
|
||||||
max_width;
|
max_width;
|
||||||
__int64 byte_total;
|
__uint64 byte_total;
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* WCMD_directory
|
* WCMD_directory
|
||||||
|
@ -363,10 +363,10 @@ ULARGE_INTEGER byte_count, file_size;
|
||||||
* FIXME: There must be a better algorithm!
|
* FIXME: There must be a better algorithm!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char * WCMD_filesize64 (__int64 n) {
|
char * WCMD_filesize64 (__uint64 n) {
|
||||||
|
|
||||||
__int64 q;
|
__uint64 q;
|
||||||
int r, i;
|
uint r, i;
|
||||||
char *p;
|
char *p;
|
||||||
static char buff[32];
|
static char buff[32];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue