Skip to content

Commit

Permalink
mingw32 cause compilation failure when -Wconversion is enabled while
Browse files Browse the repository at this point in the history
cross compiling for win32 application using MXE environment because
long unsigned int != size_t (aka long long unsigned int)
  • Loading branch information
vinayyadav3016 committed Oct 15, 2024
1 parent 55891cd commit 7937ff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ class basic_specs {
char fill_data_[max_fill_size] = {' '};

FMT_CONSTEXPR void set_fill_size(size_t size) {
data_ = (data_ & ~fill_size_mask) | (size << fill_size_shift);
data_ = static_cast<unsigned long>((data_ & ~fill_size_mask) |
(size << fill_size_shift));
}

public:
Expand Down

0 comments on commit 7937ff9

Please sign in to comment.