Fix: Build issue on 32 bit archs
The cast to size_t leads to a build issue on 32 bit archs. cursor_delim_type_utf8 expects an int so an additional cast to size_t is not required. Reported by user frispete on devtalk.
This commit is contained in:
parent
66addab27a
commit
6514e4c418
Notes:
blender-bot
2023-02-14 08:38:11 +01:00
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
|
@ -199,7 +199,7 @@ void BLI_str_cursor_step_utf8(const char *str,
|
|||
const int pos_prev = *pos;
|
||||
if (BLI_str_cursor_step_prev_utf8(str, maxlen, pos)) {
|
||||
if ((jump != STRCUR_JUMP_ALL) &&
|
||||
(delim_type != cursor_delim_type_utf8(str, maxlen, (size_t)*pos))) {
|
||||
(delim_type != cursor_delim_type_utf8(str, maxlen, *pos))) {
|
||||
/* left only: compensate for index/change in direction */
|
||||
if ((pos_orig - (*pos)) >= 1) {
|
||||
*pos = pos_prev;
|
||||
|
|
Loading…
Reference in New Issue