Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A quick implementation of MIN() didn't take into account operator precedence as shown in the following example: #include <stdio.h> #define MYMIN(_a, _b) (_a) > (_b) ? (_b) : (_a) int main() { if (MYMIN(512, 256) < 14) { printf("buggy MYMIN\n"); } return 0; } Signed-off-by: Nithin Raju <nithin@vmware.com> Acked-by: Russell Bryant <russell@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information