[prev in list] [next in list] [prev in thread] [next in thread]
List: uclibc-cvs
Subject: [git commit] string: Silence warning
From: Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date: 2013-07-19 10:58:28
Message-ID: 20130719110301.18F629A621 () busybox ! osuosl ! org
[Download RAW message or body]
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@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);
}
_______________________________________________
uClibc-cvs mailing list
uClibc-cvs@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic