Fix sign error in SYSTEM_CLOCK kind=4 Windows version.
2013-04-28 Janne Blomqvist <jb@gcc.gnu.org> * intrinsics/system_clock.c (system_clock_4): Fix sign error in Windows version. From-SVN: r198378
This commit is contained in:
parent
22ad5e0a85
commit
a2f7b4ad34
@ -1,3 +1,8 @@
|
|||||||
|
2013-04-28 Janne Blomqvist <jb@gcc.gnu.org>
|
||||||
|
|
||||||
|
* intrinsics/system_clock.c (system_clock_4): Fix sign error in
|
||||||
|
Windows version.
|
||||||
|
|
||||||
2013-04-15 Tobias Burnus <burnus@net-b.de>
|
2013-04-15 Tobias Burnus <burnus@net-b.de>
|
||||||
|
|
||||||
* list_read.c (finish_separator): Initialize variable.
|
* list_read.c (finish_separator): Initialize variable.
|
||||||
|
@ -134,7 +134,7 @@ system_clock_4(GFC_INTEGER_4 *count, GFC_INTEGER_4 *count_rate,
|
|||||||
QueryPerformanceCounter has potential issues. */
|
QueryPerformanceCounter has potential issues. */
|
||||||
uint32_t cnt = GetTickCount ();
|
uint32_t cnt = GetTickCount ();
|
||||||
if (cnt > GFC_INTEGER_4_HUGE)
|
if (cnt > GFC_INTEGER_4_HUGE)
|
||||||
cnt -= GFC_INTEGER_4_HUGE - 1;
|
cnt = cnt - GFC_INTEGER_4_HUGE - 1;
|
||||||
*count = cnt;
|
*count = cnt;
|
||||||
}
|
}
|
||||||
if (count_rate)
|
if (count_rate)
|
||||||
|
Loading…
Reference in New Issue
Block a user