projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
810394c
)
util: int -> size_t
author
Robert Swiecki
<robert@swiecki.net>
Mon, 12 Feb 2018 15:28:45 +0000
(16:28 +0100)
committer
Robert Swiecki
<robert@swiecki.net>
Mon, 12 Feb 2018 15:28:45 +0000
(16:28 +0100)
util.cc
patch
|
blob
|
history
diff --git
a/util.cc
b/util.cc
index 44f2daaa035d6e381cc8615bc68927022a17b946..22bda1fda882c3b06cd2105c94040f1c71c27337 100644
(file)
--- a/
util.cc
+++ b/
util.cc
@@
-170,7
+170,7
@@
int sSnPrintf(char* str, size_t size, const char* format, ...) {
}
bool isANumber(const char* s) {
- for (
in
t i = 0; s[i]; s++) {
+ for (
size_
t i = 0; s[i]; s++) {
if (!isdigit(s[i]) && s[i] != 'x') {
return false;
}