From b55071c9b61030b0a9e691d5b565bdb577619b23 Mon Sep 17 00:00:00 2001 From: ketmar Date: Wed, 24 Nov 2021 00:28:58 +0000 Subject: [PATCH] sdpygfx: cosmetix FossilOrigin-Name: ea2120c2c3ff27ea73389c066707563586bc2835c8743395f003c0a8ccb8bff5 --- sdpy/region.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdpy/region.d b/sdpy/region.d index 45feb3f..0c86d1d 100644 --- a/sdpy/region.d +++ b/sdpy/region.d @@ -449,11 +449,11 @@ private: ("~minAndRes~") = 0; int max = cast(int)line.length; while (("~minAndRes~") < max) { - int mid = (("~minAndRes~")+max)/2; // ignore possible overflow, it can't happen here + int mid = (("~minAndRes~")+max)>>1; // ignore possible overflow, it can't happen here debug assert(mid < max); if (line[mid] < x) ("~minAndRes~") = mid+1; else max = mid; } - //return ("~minAndRes~"); // actually, key is found if (max == min/*always*/ && min < line.length && line[min] == x) + //return ("~minAndRes~"); // actually, the key is found if (max == min/*always*/ && min < line.length && line[min] == x) }"; // ////////////////////////////////////////////////////////////////////////// // -- 2.11.4.GIT