Minor overflow fix in translate-region-internal
* src/editfns.c (Ftranslate_region_internal): Use ptrdiff_t, not int, for a count that might exceed INT_MAX.
This commit is contained in:
parent
c48ea7c08c
commit
800d3815e4
1 changed files with 1 additions and 1 deletions
|
@ -2437,7 +2437,7 @@ It returns the number of characters changed. */)
|
|||
{
|
||||
register unsigned char *tt; /* Trans table. */
|
||||
register int nc; /* New character. */
|
||||
int cnt; /* Number of changes made. */
|
||||
ptrdiff_t cnt; /* Number of changes made. */
|
||||
ptrdiff_t size; /* Size of translate table. */
|
||||
ptrdiff_t pos, pos_byte, end_pos;
|
||||
bool multibyte = !NILP (BVAR (current_buffer, enable_multibyte_characters));
|
||||
|
|
Loading…
Add table
Reference in a new issue