mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-12 22:04:24 -06:00
uppsrc: Undefined Behaviour sanitization
git-svn-id: svn://ultimatepp.org/upp/trunk@13032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6f9358dbb4
commit
7ab13ffc80
18 changed files with 65 additions and 64 deletions
|
|
@ -295,8 +295,9 @@ void HashBase::Swap(HashBase& b) {
|
|||
}
|
||||
|
||||
|
||||
#ifdef CPU_X86
|
||||
#ifdef CPU_UNALIGNED
|
||||
|
||||
NOUBSAN // CPU supports unaligned memory access
|
||||
unsigned memhash(const void *ptr, size_t count)
|
||||
{
|
||||
unsigned hash = 1234567890U;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue