[Toybox] [PATCH] fix compiler error

Rob Landley rob at landley.net
Thu Aug 24 02:10:08 PDT 2023


On 8/23/23 11:35, enh via Toybox wrote:
> %t is the appropriate choice for pointer differences on both ILP32 and
> LP64, and shorter than casting to long:
> ```
> external/toybox/toys/pending/expr.c:209:45: error: format specifies
> type 'long' but the argument has type 'int' [-Werror,-Wformat]

Warning: long and int are literally identical in this context, and in the
context where they're not long is correct.

Did we ever figure out what the standards committee was smoking?

Rob


More information about the Toybox mailing list