From d6c53f933f61729940843e5ca65cd230b580886f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 25 Jul 2019 12:10:06 +0200 Subject: [PATCH] binary:: fixed incorrectly computed use_direct --- binary-tiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 581a9b2e..22a59690 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -480,7 +480,7 @@ namespace binary { void build_tmatrix() { if(among(geometry, gBinaryTiling, gSol)) return; // unused - use_direct = (1 << S7) - 1; + use_direct = (1 << (S7-1)) - 1; if(geometry == gBinary4) { use_direct = 3; direct_tmatrix[0] = xpush(-log(2)) * parabolic(-0.5);