Changeset 83b2e73 in mainline


Ignore:
Timestamp:
2016-03-08T09:17:26Z (8 years ago)
Author:
Aurelio Colosimo <aurelio@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.