Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/cap.c

    r05b59393 r120d5bc  
    185185        sunit = NULL;
    186186
    187         assert(cap->cunit < CU_LIMIT);
     187        if (cap->cunit < 0 || cap->cunit >= CU_LIMIT)
     188                assert(false);
    188189
    189190        rc = ipow10_u64(cap->dp, &div);
Note: See TracChangeset for help on using the changeset viewer.