File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,6 @@ enum precedence {
96
96
97
97
typedef Bounds_checked_array<Item*> Ref_ptr_array;
98
98
99
- static inline uint32
100
- char_to_byte_length_safe (size_t char_length_arg, uint32 mbmaxlen_arg)
101
- {
102
- ulonglong tmp= ((ulonglong) char_length_arg) * mbmaxlen_arg;
103
- return tmp > UINT_MAX32 ? UINT_MAX32 : static_cast <uint32>(tmp);
104
- }
105
-
106
99
bool mark_unsupported_function (const char *where, void *store, uint result);
107
100
108
101
/* convenience helper for mark_unsupported_function() above */
Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ class DTCollation {
184
184
185
185
186
186
static inline uint32
187
- char_to_byte_length_safe (uint32 char_length_arg, uint32 mbmaxlen_arg)
187
+ char_to_byte_length_safe (size_t char_length_arg, uint32 mbmaxlen_arg)
188
188
{
189
- ulonglong tmp= ((ulonglong) char_length_arg) * mbmaxlen_arg;
190
- return ( tmp > UINT_MAX32) ? (uint32) UINT_MAX32 : ( uint32) tmp;
189
+ ulonglong tmp= ((ulonglong) char_length_arg) * mbmaxlen_arg;
190
+ return tmp > UINT_MAX32 ? UINT_MAX32 : static_cast < uint32>( tmp) ;
191
191
}
192
192
193
193
/* *
You can’t perform that action at this time.
0 commit comments