diff options
Diffstat (limited to 'strings/strto.c')
-rw-r--r-- | strings/strto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/strto.c b/strings/strto.c index adada98e143..72ab29caed3 100644 --- a/strings/strto.c +++ b/strings/strto.c @@ -197,7 +197,7 @@ function (const char *nptr,char **endptr,int base) } /* Return the result of the appropriate sign. */ - return (negative ? -((longtype) i) : i); + return (negative ? -((longtype) i) : (longtype) i); noconv: /* There was no number to convert. */ |