diff options
author | Ian Lance Taylor <iant@golang.org> | 2013-06-25 10:44:25 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2013-06-25 10:44:25 -0700 |
commit | e259828ddf559b0910290c004fcc02f940860581 (patch) | |
tree | cadbe9796950d285d81a08142a211a6ad11068fe /src/lib9/atoi.c | |
parent | 31d4ee6227d6a390712b66cb077c1e38df026e49 (diff) | |
download | go-e259828ddf559b0910290c004fcc02f940860581.tar.gz |
lib9: avoid all -Wconversion warnings
Built after adding -Wconversion to the list of compiler
arguments used when building. I believe these are all OK
assuming we will not change the API. There is no effort to
detect overflow due to very long strings.
R=golang-dev, dave, rsc, r
CC=golang-dev
https://codereview.appspot.com/10195044
Diffstat (limited to 'src/lib9/atoi.c')
-rw-r--r-- | src/lib9/atoi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/atoi.c b/src/lib9/atoi.c index 37a178280..3162b0117 100644 --- a/src/lib9/atoi.c +++ b/src/lib9/atoi.c @@ -29,7 +29,7 @@ THE SOFTWARE. int atoi(char *s) { - return strtol(s, 0, 0); + return (int)strtol(s, 0, 0); } long |