pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:2254:   #define DECODE(Z) do { \    EDB(5, \    fprintf(stderr,"%*sdecode(%s) at %d: ", \    data->depth,"",(Z),__LINE__)); \    what=GETC(); \    e=what>>SIZE_SHIFT; \    if(what & TAG_SMALL) { \    num=e; \    } else { \    num = 0; \ -  while(e-->=0) num = (num<<8) + (GETC()+1); \ +  while(e-->=0) num = ((unsigned INT64)num<<8) \ +  + (GETC()+1); \    num += MAX_SMALL - 1; \    } \    if(what & TAG_NEG) { \    num = ~num; \    } \    EDB(5, \    fprintf(stderr,"type=%d (%s), num=%ld\n", \    (what & TAG_MASK), \    get_name_of_type(tag_to_type(what & TAG_MASK)), \    (long)num) ); \
pike.git/src/encode.c:2360:    \    default: \    decode_error (data, NULL, "Tag is wrong: %d\n", what & TAG_MASK); \    } \   }while(0)      #define decode_number(X,data) do { \    INT32 what, e; \    INT64 num; \    DECODE("decode_number"); \ -  X=(what & TAG_MASK) | ((INT32) num<<4); \ +  X=(what & TAG_MASK) | ((unsigned INT64)num<<4); \    EDB(5, fprintf(stderr, "%*s ==>%ld\n", \    data->depth, "", (long) X)); \    }while(0) \         static void restore_type_stack(struct pike_type **old_stackp)   {   #if 0    fprintf(stderr, "Restoring type-stack: %p => %p\n",    Pike_compiler->type_stackp, old_stackp);