[git commit] string: Silence warning
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Jul 19 10:58:28 UTC 2013
commit: http://git.uclibc.org/uClibc++/commit/?id=57e3652aec12098446f1faf80dc53d386251a0b3
branch: http://git.uclibc.org/uClibc++/commit/?id=refs/heads/master
include/string:85:3: warning: ordered comparison of pointer with integer
zero [-Wextra]
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/string | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/string b/include/string
index 7826ce7..313288d 100644
--- a/include/string
+++ b/include/string
@@ -82,7 +82,7 @@ public:
if(n == npos){
__throw_out_of_range();
}
- if(s > 0){
+ if (*s > 0){
resize(n);
Tr::copy(vector<Ch, A>::data, s, vector<Ch, A>::elements);
}
More information about the uClibc-cvs
mailing list