Ignore:
Timestamp:
Mar 2, 2009, 2:14:43 AM (16 years ago)
Author:
bird
Message:

kash: eliminating warnings (gcc/darwin).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/memalloc.c

    r2290 r2312  
    127127
    128128        nbytes = SHELL_ALIGN(nbytes);
    129         if (nbytes > psh->stacknleft) {
     129        if (nbytes > (size_t)psh->stacknleft || psh->stacknleft < 0) {
    130130                size_t blocksize;
    131131                struct stack_block *sp;
Note: See TracChangeset for help on using the changeset viewer.