Re: [dev] [st] [patch] misplaced parenthesis in LEN macro

From: FRIGN <dev_AT_frign.de>
Date: Sun, 20 Apr 2014 21:15:07 +0200

On Sun, 20 Apr 2014 20:13:02 +0100
sin <sin_AT_2f30.org> wrote:

> You are missing the parentheses there.
>
> Your macro provides the wrong answer for something like:
>
> int a[] = { 1, 2, 3, 4, 5 };
> printf("%zu\n", LEN(a + 2));

Ah, that's right!
Thanks for noting this.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Sun Apr 20 2014 - 21:15:07 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 20 2014 - 21:24:09 CEST