Allow conversion from const void * to QData (#2650)
This commit is contained in:
parent
82b2af3b83
commit
19e4013ab5
|
|
@ -753,9 +753,9 @@ static inline void* VL_CVT_Q_VP(QData lhs) VL_PURE {
|
||||||
u.q = lhs;
|
u.q = lhs;
|
||||||
return u.fp;
|
return u.fp;
|
||||||
}
|
}
|
||||||
/// Return QData from void*
|
/// Return QData from const void*
|
||||||
static inline QData VL_CVT_VP_Q(void* fp) VL_PURE {
|
static inline QData VL_CVT_VP_Q(const void* fp) VL_PURE {
|
||||||
union { void* fp; QData q; } u;
|
union { const void* fp; QData q; } u;
|
||||||
u.q = 0;
|
u.q = 0;
|
||||||
u.fp = fp;
|
u.fp = fp;
|
||||||
return u.q;
|
return u.q;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue