summaryrefslogtreecommitdiff
path: root/pjlib-util
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib-util')
-rw-r--r--pjlib-util/src/pjlib-util/scanner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib-util/src/pjlib-util/scanner.c b/pjlib-util/src/pjlib-util/scanner.c
index c7a9cf9b..eeea1320 100644
--- a/pjlib-util/src/pjlib-util/scanner.c
+++ b/pjlib-util/src/pjlib-util/scanner.c
@@ -342,7 +342,9 @@ PJ_DEF(void) pj_scan_get_quote( pj_scanner *scanner,
int begin_quote, int end_quote,
pj_str_t *out)
{
- pj_scan_get_quotes(scanner, (char*)&begin_quote, (char*)&end_quote, 1, out);
+ char beg = (char)begin_quote;
+ char end = (char)end_quote;
+ pj_scan_get_quotes(scanner, &beg, &end, 1, out);
}
PJ_DEF(void) pj_scan_get_quotes(pj_scanner *scanner,