slackbuilds_ponce/audio/rumor/gcc7.diff
Matteo Bernardini 05eefedc6a audio/rumor: Patched for gcc >= 7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2021-04-17 23:57:15 -05:00

12 lines
485 B
Diff

diff -Naur rumor-1.0.5.orig/src/notator.cc rumor-1.0.5.new/src/notator.cc
--- rumor-1.0.5.orig/src/notator.cc 2010-11-15 18:40:22.000000000 +0100
+++ rumor-1.0.5.new/src/notator.cc 2017-05-31 15:51:42.014855383 +0200
@@ -334,7 +334,7 @@
}
} else {
OctaveTic=(RefPitch_wt>AbsPitch_wt?',':'\'');
- NumTics=(abs(RefPitch_wt-AbsPitch_wt)+3)/7;
+ NumTics=(RefPitch_wt-AbsPitch_wt+3)/7;
RefPitch_wt=AbsPitch_wt;
}
for (int i=0; i<NumTics; i++){