Changeset 7258c6a in buchla-68k for libsm/strcmp.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libsm/strcmp.c

    r0292fbb r7258c6a  
    88*/
    99
    10 int strcmp(char *s1, char *s2)
     10int16_t strcmp(int8_t *s1, int8_t *s2)
    1111{
    1212        if(s1 == s2)
     
    1717                         return(0);
    1818
    19         return((int)*s1 - (int)*--s2);
     19        return((int16_t)*s1 - (int16_t)*--s2);
    2020}
     21
Note: See TracChangeset for help on using the changeset viewer.