1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: u32 always matches int in Debian, and fix a usage in patch.c
Author: Adrian Bunk <bunk@debian.org>
--- komposter-0+git20201216+ds.orig/arch.h
+++ komposter-0+git20201216+ds/arch.h
@@ -12,13 +12,13 @@
// dword size depending on platform
-#if __x86_64__
+//#if __x86_64__
#define u32 unsigned int
#define s32 int
-#else
- #define u32 unsigned long
- #define s32 long
-#endif
+//#else
+// #define u32 unsigned long
+// #define s32 long
+//#endif
// Apple Mac OS X
--- komposter-0+git20201216+ds.orig/patch.c
+++ komposter-0+git20201216+ds/patch.c
@@ -572,7 +572,7 @@ void patch_draw_modulator(void)
i=sscanf(modeditbox, "%f", &rf);
if (i==1) {
rf=knob_scale2float(mod[csynth][mi].scale, rf);
- fptr=(unsigned long*)(&rf);
+ fptr=(u32*)(&rf);
fmask=0xffffffff; j=32;
while(j>modquantifier[csynth][cpatch[csynth]][mi]) { fmask<<=1; j--; }
*fptr&=fmask;
|