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

Changeset 623bab8f in mainline


Ignore:
Timestamp:
2013-03-11T22:37:06Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
878e181, eceff5f
Parents:
b4df8db
Message:

Fix a macro argument expansion bug on abs().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    rb4df8db r623bab8f  
    3838#define min(a, b)  ((a) < (b) ? (a) : (b))
    3939#define max(a, b)  ((a) > (b) ? (a) : (b))
    40 #define abs(a)     ((a) >= 0 ? (a) : (-a))
     40#define abs(a)     ((a) >= 0 ? (a) : -(a))
    4141
    4242
Note: See TracChangeset for help on using the changeset viewer.