mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
[PATCH] support bc version 1.04
Test t6002 unnecessarily fails when bc is a bit older than average. Signed-off-by: Johannes.Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
bd6bc56d4e
commit
148519b7dc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue