Permalink
Browse files

Warning in bytestack

  • Loading branch information...
mirek committed May 9, 2011
1 parent 676ba91 commit 12492b9f0556ecec13456c56512475f296198e71
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/yajl_bytestack.h
View
@@ -50,13 +50,14 @@ typedef struct yajl_bytestack_t
#define yajl_bs_current(obs) \
(assert((obs).used > 0), (obs).stack[(obs).used - 1])
-#define yajl_bs_push(obs, byte) { \
- if (((obs).size - (obs).used) == 0) { \
- (obs).size += YAJL_BS_INC; \
- (obs).stack = (obs).yaf->realloc((obs).yaf->ctx,\
- (void *) (obs).stack, (obs).size);\
- } \
- (obs).stack[((obs).used)++] = (byte); \
+#define yajl_bs_push(obs, byte) { \
+ if (((obs).size - (obs).used) == 0) { \
+ (obs).size += YAJL_BS_INC; \
+ (obs).stack = (obs).yaf->realloc((obs).yaf->ctx, \
+ (void *)((obs).stack), \
+ (size_t)((obs).size)); \
+ } \
+ (obs).stack[((obs).used)++] = (byte); \
}
/* removes the top item of the stack, returns nothing */

0 comments on commit 12492b9

Please sign in to comment.