pike.git / src / peep.c

version» Context lines:

pike.git/src/peep.c:138: Inside #if defined(DEBUG)
   if(hasarg(f))    fatal("hasarg() is wrong!\n");   #endif    return insert_opcode(f,0,current_line, current_file);   }      void update_arg(int instr,INT32 arg)   {    p_instr *p;   #ifdef DEBUG -  if(instr > instrbuf.s.len / sizeof(p_instr) || instr < 0) +  if(instr > (long)instrbuf.s.len / (long)sizeof(p_instr) || instr < 0)    fatal("update_arg outside known space.\n");   #endif    p=(p_instr *)instrbuf.s.str;    p[instr].arg=arg;   }         /**** Bytecode Generator *****/      void ins_f_byte(unsigned int b)
pike.git/src/peep.c:344:   /**** Peephole optimizer ****/      static int fifo_len, eye,len;   static p_instr *instrs;      #ifdef DEBUG   static void debug()   {    p_instr *p;    -  if(fifo_len > instrbuf.s.len / sizeof(p_instr)) +  if(fifo_len > (long)instrbuf.s.len / (long)sizeof(p_instr))    fatal("Fifo too long.\n");       if(eye < 0)    fatal("Popped beyond start of code.\n");       if(instrbuf.s.len)    {    p=(p_instr *)low_make_buf_space(0, &instrbuf);    if(!p[-1].file)    fatal("No file name on last instruction!\n");