Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163936279
D56369.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
617 B
Referenced Files
None
Subscribers
None
D56369.id.diff
View Options
diff --git a/sys/sys/time.h b/sys/sys/time.h
--- a/sys/sys/time.h
+++ b/sys/sys/time.h
@@ -355,10 +355,12 @@
static __inline sbintime_t
tstosbt_sat(struct timespec _ts)
{
+#ifndef __i386__
if (_ts.tv_sec > SBT_MAX >> 32)
return (SBT_MAX);
if (_ts.tv_sec < -(SBT_MAX >> 32) - 1)
return (-SBT_MAX - 1);
+#endif
return (tstosbt(_ts));
}
@@ -382,10 +384,12 @@
static __inline sbintime_t
tvtosbt_sat(struct timeval _tv)
{
+#ifndef __i386__
if (_tv.tv_sec > SBT_MAX >> 32)
return (SBT_MAX);
if (_tv.tv_sec < -(SBT_MAX >> 32) - 1)
return (-SBT_MAX - 1);
+#endif
return (tvtosbt(_tv));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 28, 7:36 AM (14 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35640421
Default Alt Text
D56369.id.diff (617 B)
Attached To
Mode
D56369: sys/time: appease gcc -Wtype-limits
Attached
Detach File
Event Timeline
Log In to Comment