uppsrc: Undefined Behaviour sanitization

git-svn-id: svn://ultimatepp.org/upp/trunk@13032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-04-23 07:59:06 +00:00
parent 6f9358dbb4
commit 7ab13ffc80
18 changed files with 65 additions and 64 deletions

View file

@ -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;