mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed the start value for the time calculation in time2.
svn path=/trunk/; revision=3603
This commit is contained in:
parent
df43e0e3f8
commit
d6d2e95044
1 changed files with 1 additions and 1 deletions
|
@ -1323,7 +1323,7 @@ time2(struct tm *tmp, void (*const funcp)(const time_t *const,const long,struct
|
|||
** If time_t is signed, then 0 is the median value,
|
||||
** if time_t is unsigned, then 1 << bits is median.
|
||||
*/
|
||||
t = (time_t) 1 << bits;
|
||||
t = (time_t) ((1 << bits) - 1);
|
||||
for ( ; ; )
|
||||
{
|
||||
(*funcp)(&t, offset, &mytm);
|
||||
|
|
Loading…
Reference in a new issue