public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5011431
)
fixed clock for larger word sizes
author
ceriel
<none@none>
Fri, 7 Apr 1989 09:20:06 +0000
(09:20 +0000)
committer
ceriel
<none@none>
Fri, 7 Apr 1989 09:20:06 +0000
(09:20 +0000)
lang/pc/libpc/clock.c
patch
|
blob
|
history
diff --git
a/lang/pc/libpc/clock.c
b/lang/pc/libpc/clock.c
index
af32fa0
..
73997fb
100644
(file)
--- a/
lang/pc/libpc/clock.c
+++ b/
lang/pc/libpc/clock.c
@@
-33,5
+33,11
@@
int clock() {
struct tbuf t;
times(&t);
- return( (t.utime + t.stime) & 077777);
+ return( (int)(t.utime + t.stime) &
+#if EM_WSIZE <= 2
+ 077777
+#else
+ 0x7fffffffL
+#endif
+ );
}