Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152867169
D21766.id62562.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
711 B
Referenced Files
None
Subscribers
None
D21766.id62562.diff
View Options
Index: sys/sys/qmath.h
===================================================================
--- sys/sys/qmath.h
+++ sys/sys/qmath.h
@@ -58,11 +58,16 @@
typedef s64q_t smaxq_t;
typedef u64q_t umaxq_t;
+#if defined(__GNUC__)
+/* Ancient GCC hack to de-const, remove when GCC4 is removed. */
+#define Q_BT(q) __typeof(1 * q)
+#else
/* The underlying base type of 'q'. */
-#define Q_BT(q) __typeof(q)
+#define Q_BT(q) __typeof(q)
+#endif
/* Type-cast variable 'v' to the same underlying type as 'q'. */
-#define Q_TC(q, v) ((Q_BT(q))(v))
+#define Q_TC(q, v) ((__typeof(q))(v))
/* Number of total bits associated with the data type underlying 'q'. */
#define Q_NTBITS(q) ((uint32_t)(sizeof(q) << 3))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 18, 2:57 PM (1 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31724523
Default Alt Text
D21766.id62562.diff (711 B)
Attached To
Mode
D21766: Fix Q_TOSTR(3) when called with first parameter being const
Attached
Detach File
Event Timeline
Log In to Comment