From 54cffac521c1cbc58a0302002dd5793742bcfac0 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 8 Jan 2023 10:44:32 +0100 Subject: [PATCH] simplified logic of interval calculation for exact size search --- .../src/gui/advsearch/expressionwidget.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/retroshare-gui/src/gui/advsearch/expressionwidget.cpp b/retroshare-gui/src/gui/advsearch/expressionwidget.cpp index dc1738825..7745c8a60 100644 --- a/retroshare-gui/src/gui/advsearch/expressionwidget.cpp +++ b/retroshare-gui/src/gui/advsearch/expressionwidget.cpp @@ -187,21 +187,12 @@ RsRegularExpression::Expression* ExpressionWidget::getRsExpression() if(cond == RsRegularExpression::Equals) { - // Now compute a proper interval. For that we look for the largest non significant digit, and add/remove 50% of it. - int i=0; - while(!(s & (1<