You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
666 B
19 lines
666 B
Fix strict aliasing warnings: reeverb/Components/allpass.h:36:2: warning:
|
|
dereferencing type-punned pointer will break strict-aliasing rules
|
|
|
|
https://bugs.gentoo.org/show_bug.cgi?id=307563
|
|
|
|
Index: cmt/src/freeverb/Components/denormals.h
|
|
===================================================================
|
|
--- cmt.orig/src/freeverb/Components/denormals.h
|
|
+++ cmt/src/freeverb/Components/denormals.h
|
|
@@ -8,7 +8,7 @@
|
|
#ifndef _denormals_
|
|
#define _denormals_
|
|
|
|
-#define undenormalise(sample) if(((*(unsigned int*)&sample)&0x7f800000)==0) sample=0.0f
|
|
+#define undenormalise(sample) if((((unsigned int)sample)&0x7f800000)==0) sample=0.0f
|
|
|
|
#endif//_denormals_
|
|
|