Unverified Commit f658c303 by John Kessenich Committed by GitHub

Merge pull request #1491 from DennisOSRM/patch-1

Fix compiler warning emitted from GCC8
parents 6def4375 fc89f065
...@@ -26,7 +26,7 @@ Dest BitwiseCast(Src source) { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment