Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Warning in bytestack

  • Loading branch information...
commit 12492b9f0556ecec13456c56512475f296198e71 1 parent 676ba91
@mirek authored
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/yajl_bytestack.h
View
15 src/yajl_bytestack.h
@@ -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 */
Please sign in to comment.
Something went wrong with that request. Please try again.