projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df43e0e
)
Fixed the start value for the time calculation in time2.
author
Hartmut Birr
<osexpert@googlemail.com>
Thu, 3 Oct 2002 17:17:35 +0000
(17:17 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Thu, 3 Oct 2002 17:17:35 +0000
(17:17 +0000)
svn path=/trunk/; revision=3603
reactos/lib/msvcrt/time/ctime.c
patch
|
blob
|
history
diff --git
a/reactos/lib/msvcrt/time/ctime.c
b/reactos/lib/msvcrt/time/ctime.c
index
3443012
..
b34b515
100644
(file)
--- a/
reactos/lib/msvcrt/time/ctime.c
+++ b/
reactos/lib/msvcrt/time/ctime.c
@@
-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);