← Commit list

009617f41

Eric Andersen
Eric Andersen
2004-04-05
FAILED Duration: 67s

Subject

Per suggestion by Pawel Sakowski, fix the dash_arith() prototype to return a long. We were needlessly truncating to an int.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+2 -2
@@ -1446,7 +1446,7 @@ static void defun(char *, union node *);
static void unsetfunc(const char *);
#ifdef CONFIG_ASH_MATH_SUPPORT
-static int dash_arith(const char *);
+static long dash_arith(const char *);
#endif
#ifdef CONFIG_ASH_RANDOM_SUPPORT
@@ -12475,7 +12475,7 @@ static int timescmd(int ac, char **av)
}
#ifdef CONFIG_ASH_MATH_SUPPORT
-static int
+static long
dash_arith(const char *s)
{
long result;