aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libdparse/389.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-04-17 09:50:54 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-04-17 10:02:47 +0200
commit45fcaed542924f40a82ca4a3ac4c1500c22e87b0 (patch)
treed4fd9034e57f9590e1dacd8be4a3e9e3966e2f97 /testing/libdparse/389.patch
parentd01f80fd4c27e6ff3a818d890886a8b2d94769c8 (diff)
downloadaports-45fcaed542924f40a82ca4a3ac4c1500c22e87b0.tar.bz2
aports-45fcaed542924f40a82ca4a3ac4c1500c22e87b0.tar.xz
testing/libdparse: fix build on x86
Diffstat (limited to 'testing/libdparse/389.patch')
-rw-r--r--testing/libdparse/389.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/libdparse/389.patch b/testing/libdparse/389.patch
new file mode 100644
index 0000000000..027d2a8282
--- /dev/null
+++ b/testing/libdparse/389.patch
@@ -0,0 +1,23 @@
+From 052470ca738d5c683ab5511e47bdf335bf754db4 Mon Sep 17 00:00:00 2001
+From: Jan Jurzitza <gh@webfreak.org>
+Date: Fri, 17 Apr 2020 08:47:24 +0200
+Subject: [PATCH] Fixed unittest on x86 (fix #388)
+
+---
+ src/dparse/lexer.d | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/dparse/lexer.d b/src/dparse/lexer.d
+index 2661543..22ab0c1 100644
+--- a/src/dparse/lexer.d
++++ b/src/dparse/lexer.d
+@@ -1891,7 +1891,8 @@ unittest
+ {
+ assert(optimalBucketCount(1) == 2);
+ assert(optimalBucketCount(9000 * 32) == 16384);
+- assert(optimalBucketCount(100_000_000_000UL) == 1 << 30);
++ static if (size_t.sizeof == ulong.sizeof)
++ assert(optimalBucketCount(100_000_000_000UL) == 1 << 30);
+ }
+
+ /**