Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 75ebb5b6 in mainline


Ignore:
Timestamp:
2010-04-13T10:26:28Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial
Children:
c9fff17
Parents:
34aac91
Message:

Make phoneid comparison always unsigned in GET_CHECK_PHONE().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/sysipc.c

    r34aac91 r75ebb5b6  
    6060#define GET_CHECK_PHONE(phone, phoneid, err) \
    6161{ \
    62         if (phoneid >= IPC_MAX_PHONES) { \
     62        if ((unative_t) (phoneid) >= IPC_MAX_PHONES) { \
    6363                err \
    6464        } \
    65         phone = &TASK->phones[phoneid]; \
     65        phone = &TASK->phones[(phoneid)]; \
    6666}
    6767
Note: See TracChangeset for help on using the changeset viewer.