Skip to content
Commit 6199ecba authored by Paul Fagerburg's avatar Paul Fagerburg Committed by Carles Cufí
Browse files

cbprintf: use type instead of name in sizeof



Using `arg + 0` in sizeof causes problems with `void *`, so use the
type name instead, but make sure it's at least `sizeof(int)` because
the variadic expects a minimum of `int` size. This allows deleting
the specialization for `void *`, which the linker wasn't choosing
reliably anyway.

Signed-off-by: default avatarPaul Fagerburg <pfagerburg@google.com>
parent 161d8323
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment