mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 12:23:38 +00:00
reinterpret_cast fixes for the Windows compiler.
This commit is contained in:
parent
4626196907
commit
f11502e0ac
2 changed files with 4 additions and 4 deletions
|
@ -85,9 +85,8 @@ hwf_manager::~hwf_manager()
|
|||
{
|
||||
}
|
||||
|
||||
// #define RAW(X) (*reinterpret_cast<const uint64*>(&(X)))
|
||||
#define RAW(X) ({ uint64 tmp; memcpy(&tmp, &(X), sizeof(uint64)); tmp; })
|
||||
#define DBL(X) ({ double tmp; memcpy(&tmp, &(X), sizeof(double)); tmp; })
|
||||
uint64 RAW(double X) { uint64 tmp; memcpy(&tmp, &(X), sizeof(uint64)); return tmp; }
|
||||
double DBL(uint64 X) { double tmp; memcpy(&tmp, &(X), sizeof(double)); return tmp; }
|
||||
|
||||
void hwf_manager::set(hwf & o, int value) {
|
||||
o.value = (double) value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue