Permalink
Browse files

bugfix: fixed compilation errors when DDEBUG = 1.

  • Loading branch information...
1 parent 1d79e5b commit 83dd18ede12b426302edbf6611acae960b32c2e5 @agentzh agentzh committed Feb 15, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −1 src/common.rl
  2. +7 −7 src/ngx_http_redis2_reply.c
View
@@ -50,7 +50,7 @@
action read_chunk {
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
action check_data_complete {
@@ -132,7 +132,7 @@ case 5:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 12 "src/common.rl"
{
@@ -379,7 +379,7 @@ case 13:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 12 "src/common.rl"
{
@@ -716,7 +716,7 @@ case 23:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 30 "src/multi_bulk_reply.rl"
{
@@ -1329,7 +1329,7 @@ case 33:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 30 "src/multi_bulk_reply.rl"
{
@@ -2512,7 +2512,7 @@ case 40:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 30 "src/multi_bulk_reply.rl"
{
@@ -2744,7 +2744,7 @@ case 41:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 30 "src/multi_bulk_reply.rl"
{
@@ -3604,7 +3604,7 @@ case 46:
{
ctx->chunks_read++;
dd("have read chunk %d, %.*s", (int) ctx->chunks_read,
- (int) (p - (char *) b->last), (char *) b->last);
+ (int) (p - (signed char *) b->last), (signed char *) b->last);
}
#line 30 "src/multi_bulk_reply.rl"
{

0 comments on commit 83dd18e

Please sign in to comment.