Changing type of data_ to size_t to avoid compilation warnings (#4200)

Changing type data_ to size_t because
1. If lib is cross-compiled for win32 using MXE environment it cause
   compilation warning -Wconversion on line 730 as sizeof(unsigned long)
   = 4 and sizeof(size_t) = 8
2. When lib is compiled on Unix like compiler generate warning
   -Wuseless-cast if static_cast is used to fix issue in 1
This commit is contained in:
Vinay Yadav 2024-10-19 19:29:21 +05:30 committed by GitHub
parent a0a9ba2afc
commit 58c185b634
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -721,7 +721,7 @@ class basic_specs {
max_fill_size = 4
};
unsigned long data_ = 1 << fill_size_shift;
size_t data_ = 1 << fill_size_shift;
// Character (code unit) type is erased to prevent template bloat.
char fill_data_[max_fill_size] = {' '};