projects
/
kopensolaris-gnu
/
glibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use unsigned type for working variable.
[kopensolaris-gnu/glibc.git]
/
stdlib
/
a64l.c
diff --git
a/stdlib/a64l.c
b/stdlib/a64l.c
index
9d462c7
..
d1dd3a9
100644
(file)
--- a/
stdlib/a64l.c
+++ b/
stdlib/a64l.c
@@
-24,7
+24,7
@@
a64l (string)
const char *string;
{
size_t cnt;
- long int result = 0l;
+
unsigned
long int result = 0l;
for (cnt = 0; cnt < 6; ++cnt)
{
@@
-50,5
+50,5
@@
a64l (string)
}
}
- return result;
+ return
(long int)
result;
}