Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152560790
D56369.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.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
Thu, Apr 16, 4:59 PM (15 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31496011
Default Alt Text
D56369.diff (617 B)
Attached To
Mode
D56369: sys/time: appease gcc -Wtype-limits
Attached
Detach File
Event Timeline
Log In to Comment