Merge pull request #1491 from DennisOSRM/patch-1
Fix compiler warning emitted from GCC8
This commit is contained in:
commit
f658c3033b
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ Dest BitwiseCast(Src source) {
|
||||||
Dest dest;
|
Dest dest;
|
||||||
static_assert(sizeof(source) == sizeof(dest),
|
static_assert(sizeof(source) == sizeof(dest),
|
||||||
"BitwiseCast: Source and destination must have the same size");
|
"BitwiseCast: Source and destination must have the same size");
|
||||||
std::memcpy(&dest, &source, sizeof(dest));
|
std::memcpy(static_cast<void*>(&dest), &source, sizeof(dest));
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue