fixed clock for larger word sizes

This commit is contained in:
ceriel 1989-04-07 09:20:06 +00:00
parent 310218d1cd
commit d68340e71c

View File

@ -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
);
}