diff --git a/include/fmt/format.h b/include/fmt/format.h index 4e773f58..ea45429f 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -115,7 +115,7 @@ FMT_END_NAMESPACE # else # define FMT_THROW(x) \ do { \ - static_cast(sizeof(x)); \ + static_cast(x); \ FMT_ASSERT(false, ""); \ } while (false) # endif