mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
fix unix warning
This commit is contained in:
parent
2766860b52
commit
c0ee3fa1f0
1 changed files with 1 additions and 2 deletions
|
@ -631,8 +631,7 @@ void debug::setDeadBeef(void* memoryVoid, int size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void debug::checkDeadBeef(void* memoryVoid, int size) {
|
void debug::checkDeadBeef(void* memoryVoid, int size) {
|
||||||
unsigned char* memoryAt = (unsigned char*)memoryVoid;
|
assert(memcmp((unsigned char*)memoryVoid, DEADBEEF, std::min(size, DEADBEEF_SIZE)) != 0);
|
||||||
assert(memcmp(memoryAt, DEADBEEF, std::min(size, DEADBEEF_SIZE)) != 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Safe version of glm::eulerAngles; uses the factorization method described in David Eberly's
|
// Safe version of glm::eulerAngles; uses the factorization method described in David Eberly's
|
||||||
|
|
Loading…
Reference in a new issue