Skip to content
Snippets Groups Projects
Unverified Commit f658c303 authored by John Kessenich's avatar John Kessenich Committed by GitHub
Browse files

Merge pull request #1491 from DennisOSRM/patch-1

Fix compiler warning emitted from GCC8
parents 6def4375 fc89f065
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ Dest BitwiseCast(Src source) {
Dest dest;
static_assert(sizeof(source) == sizeof(dest),
"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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment