From 284f146e97acaf2b300674539004a6e573a5a0df Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 29 Aug 2009 12:36:45 -0700 Subject: unicorn_http: "fix" const warning neither buffer nor p should be const (since we modify buffer in $snake_upcase_char), but this is a much smaller change _for now_ --- ext/unicorn_http/unicorn_http.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index 2d829e9..8cdcbe2 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -104,7 +104,7 @@ static void write_cont_value(struct http_parser *hp, if (RSTRING_LEN(hp->cont) > 0) --hp->mark; - vptr = PTR_TO(mark); + vptr = (char *)PTR_TO(mark); if (RSTRING_LEN(hp->cont) > 0) { assert(' ' == *vptr || '\t' == *vptr); -- cgit v1.2.3-24-ge0c7