On Wed, Nov 25, 2015 at 12:16:30PM -0800, Nithin Raju wrote:
> 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 <[email protected]>
> Acked-by: Russell Bryant <[email protected]>
Applied, thanks Nithin and Russell.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev