Interface: Add casts to memcpy/memset invocations on BPoint & BRect.

Their copy constructors are exactly what GCC would generate,
but we can't remove them because doing so would make them
trivially copyable, and so they would be passed in registers
on x86_64, an ABI breakage.

So instead we have to add explicit casts to void* here.
This commit is contained in:
Augustin Cavalier
2019-05-24 16:10:13 -04:00
parent 057b69a774
commit 3ca2e85bfd
9 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ public:
opSize = other.opSize;
ptCount = other.ptCount;
ptSize = other.ptSize;
memcpy(opList, other.opList, opSize);
memcpy(ptList, other.ptList, ptSize);
memcpy((void*)opList, other.opList, opSize);
memcpy((void*)ptList, other.ptList, ptSize);
}
BRect DetermineBoundingBox() const