summaryrefslogtreecommitdiff
path: root/src/raptor_sax2.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2014-11-23 14:06:19 -0800
committerDave Beckett <dave@dajobe.org>2014-11-23 14:06:19 -0800
commit5b99f1b9eecb500fd12759153bc2ea997cd24e78 (patch)
tree8c0fa891f9943664dcfae16922312c9df2f3f01e /src/raptor_sax2.c
parentc41d0102b835947ad039356994b14042caf16ce9 (diff)
downloadraptor-5b99f1b9eecb500fd12759153bc2ea997cd24e78.tar.gz
Fixes for -Wconversion
- casting into to char near tolower and constructing chars from ints - unsigned int foo : 1 for bit flag - raptor_stringbuffer_length() to unsigned int
Diffstat (limited to 'src/raptor_sax2.c')
-rw-r--r--src/raptor_sax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raptor_sax2.c b/src/raptor_sax2.c
index d52ae51e..2e6f73b6 100644
--- a/src/raptor_sax2.c
+++ b/src/raptor_sax2.c
@@ -743,7 +743,7 @@ raptor_sax2_start_element(void* user_data, const unsigned char *name,
while(*from) {
if(isupper(*from))
- *to++ = tolower(*from++);
+ *to++ = RAPTOR_GOOD_CAST(unsigned char, tolower(*from++));
else
*to++ = *from++;
}