From 94c8905fac3799e1b31ebed0b712740071159a61 Mon Sep 17 00:00:00 2001 From: earnie Date: Tue, 30 Jan 2001 12:44:46 +0000 Subject: [PATCH] * include/time.h: (CLOCKS_PER_SEC): Type cast the constant. Thanks to: Cosmin Truta --- winsup/mingw/ChangeLog | 5 +++++ winsup/mingw/include/time.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index a7fbb16fd0..c591239dfe 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,4 +1,9 @@ +Tue Jan 30 07:31:22 2001 Earnie Boyd + + * include/time.h: (CLOCKS_PER_SEC): Type cast the constant. + Thanks to: Cosmin Truta + Mon Jan 29 14:03:07 2001 Earnie Boyd * time.h: (CLOCKS_PER_SEC) Change from FP to integer constant. diff --git a/winsup/mingw/include/time.h b/winsup/mingw/include/time.h index 2305842f25..34b25620b9 100644 --- a/winsup/mingw/include/time.h +++ b/winsup/mingw/include/time.h @@ -45,7 +45,7 @@ * Number of clock ticks per second. A clock tick is the unit by which * processor time is measured and is returned by 'clock'. */ -#define CLOCKS_PER_SEC 1000 +#define CLOCKS_PER_SEC ((clock_t)1000) #define CLK_TCK CLOCKS_PER_SEC -- 2.11.0