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

Changeset 83b2e73 in mainline for kernel/generic/include/str.h


Ignore:
Timestamp:
2016-03-08T09:17:26Z (5 years ago)
Author:
Aurelio Colosimo <aurelio@…>
Branches:
master
Children:
6a75c134
Parents:
36b0490e
Message:

fix STR_BOUNDS macro: include cnt param into round brackets

This is needed to have STR_BOUNDS properly work in case cnt is defined
as an arithmetic operation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/str.h

    r36b0490e r83b2e73  
    6262
    6363/**< Maximum size of a string containing cnt characters */
    64 #define STR_BOUNDS(cnt)  (cnt << 2)
     64#define STR_BOUNDS(cnt)  ((cnt) << 2)
    6565
    6666extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
Note: See TracChangeset for help on using the changeset viewer.