diff options
author | B. Watson <yalhcru@gmail.com> | 2021-09-10 23:06:50 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:52:20 +0700 |
commit | 17eb7bd15d79652eda6da2a6ffe1c5d3a8beeb19 (patch) | |
tree | a7fea58ad0950f62f41ebbe08726da4f2e857332 /multimedia/nted/compilefix.diff | |
parent | 12dacd96ee57e90462083f65c819a26315b7c2e2 (diff) |
multimedia/nted: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/nted/compilefix.diff')
-rw-r--r-- | multimedia/nted/compilefix.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/multimedia/nted/compilefix.diff b/multimedia/nted/compilefix.diff new file mode 100644 index 000000000000..7641910a2c60 --- /dev/null +++ b/multimedia/nted/compilefix.diff @@ -0,0 +1,20 @@ +diff -Naur nted-1.10.18/voice.cpp nted-1.10.18.patched/voice.cpp +--- nted-1.10.18/voice.cpp 2011-01-27 08:09:44.000000000 -0500 ++++ nted-1.10.18.patched/voice.cpp 2021-09-10 22:50:23.045105704 -0400 +@@ -20,6 +20,7 @@ + /****************************************************************************************/ + + #include <string.h> ++#include <stdint.h> + #include "voice.h" + #include "beaming.h" + #include "staff.h" +@@ -1369,7 +1370,7 @@ + return FALSE; + } + ref_duration = (method == 1) ? templ->getDuration() / 2 : templ->getDuration(); +- if ((min_pos_ptr = g_list_find(m_chord_or_rests, templ)) < 0) { ++ if ((intptr_t)(min_pos_ptr = g_list_find(m_chord_or_rests, templ)) < 0) { + NedResource::Abort("NedVoice::tryConvertToTuplet(1)"); + } + if ((minpos = g_list_index(m_chord_or_rests, templ)) < 0) { |