aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bees/ppc64le_fix_min_compare.patch
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2019-02-06 16:26:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-02-08 19:07:21 +0000
commitcb85638e977cc83289200ec6c1a1d21bec399643 (patch)
tree41d0316dec52f684a05ebbdd77e64833a5c302ff /testing/bees/ppc64le_fix_min_compare.patch
parentb5fca7279cf14ae2c843d9649715f71a98b5626b (diff)
downloadaports-cb85638e977cc83289200ec6c1a1d21bec399643.tar.bz2
aports-cb85638e977cc83289200ec6c1a1d21bec399643.tar.xz
testing/bees: fix ppc64le build break and reenable
Diffstat (limited to 'testing/bees/ppc64le_fix_min_compare.patch')
-rw-r--r--testing/bees/ppc64le_fix_min_compare.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/bees/ppc64le_fix_min_compare.patch b/testing/bees/ppc64le_fix_min_compare.patch
new file mode 100644
index 0000000000..49cb49359d
--- /dev/null
+++ b/testing/bees/ppc64le_fix_min_compare.patch
@@ -0,0 +1,11 @@
+--- a/src/fiemap.cc
++++ b/src/fiemap.cc
+@@ -27,7 +27,7 @@
+ if (argc > 2) { fm.fm_start = stoull(argv[2], nullptr, 0); }
+ if (argc > 3) { fm.fm_length = stoull(argv[3], nullptr, 0); }
+ if (argc > 4) { fm.fm_flags = stoull(argv[4], nullptr, 0); }
+- fm.fm_length = min(fm.fm_length, FIEMAP_MAX_OFFSET - fm.fm_start);
++ fm.fm_length = min(fm.fm_length, (uint64_t)FIEMAP_MAX_OFFSET - fm.fm_start);
+ uint64_t stop_at = fm.fm_start + fm.fm_length;
+ uint64_t last_byte = fm.fm_start;
+ do {