threads / patch / 1354

patchsupport bc version 1.04

Subject: [PATCH] support bc version 1.04

## tl;dr

One message between Jul 28, 2005 and Jul 28, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Johannes Schindelin· Jul 28, 2005, 14:48 UTC · lore
Test t6002 unnecessarily fails when bc is a bit older than average.
Signed-off-by: Johannes.Schindelin <Johannes.Schindelin@gmx.de>
---
 t/t6002-rev-list-bisect.sh |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
ccea5a568914eafc07caf0c291afe5f962672cd3
Show changes to t/t6002-rev-list-bisect.sh +6 −2
diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh
--- a/t/t6002-rev-list-bisect.sh
+++ b/t/t6002-rev-list-bisect.sh
@@ -11,8 +11,12 @@ bc_expr()
 {
 bc <<EOF
 scale=1
-define abs(x) { if (x>=0) { return x; } else { return -x; } }
-define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; }
+define abs(x) {
+	if (x>=0) { return (x); } else { return (-x); }
+}
+define floor(x) {
+	save=scale; scale=0; result=x/1; scale=save; return (result);
+}
 $*
 EOF
 }

← back to recent threads