Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Warning in bytestack

  • Loading branch information...
commit 12492b9f0556ecec13456c56512475f296198e71 1 parent 676ba91
Mirek Rusin authored

Showing 1 changed file with 8 additions and 7 deletions. Show diff stats Hide diff stats

  1. +8 7 src/yajl_bytestack.h
15 src/yajl_bytestack.h
@@ -50,13 +50,14 @@ typedef struct yajl_bytestack_t
50 50 #define yajl_bs_current(obs) \
51 51 (assert((obs).used > 0), (obs).stack[(obs).used - 1])
52 52
53   -#define yajl_bs_push(obs, byte) { \
54   - if (((obs).size - (obs).used) == 0) { \
55   - (obs).size += YAJL_BS_INC; \
56   - (obs).stack = (obs).yaf->realloc((obs).yaf->ctx,\
57   - (void *) (obs).stack, (obs).size);\
58   - } \
59   - (obs).stack[((obs).used)++] = (byte); \
  53 +#define yajl_bs_push(obs, byte) { \
  54 + if (((obs).size - (obs).used) == 0) { \
  55 + (obs).size += YAJL_BS_INC; \
  56 + (obs).stack = (obs).yaf->realloc((obs).yaf->ctx, \
  57 + (void *)((obs).stack), \
  58 + (size_t)((obs).size)); \
  59 + } \
  60 + (obs).stack[((obs).used)++] = (byte); \
60 61 }
61 62
62 63 /* removes the top item of the stack, returns nothing */

0 comments on commit 12492b9

Please sign in to comment.
Something went wrong with that request. Please try again.