diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-16 15:43:49 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-09-16 15:43:49 +0400 |
commit | 3e67a981c4f45cf960a93e31010253b33bcdbaf5 (patch) | |
tree | bbae14abf04e5443af7644b89ed5c60d69971af1 /src/xdisp.c | |
parent | b98b1a831bcfc89f038cbb8048c6969d8c73ab28 (diff) | |
download | emacs-3e67a981c4f45cf960a93e31010253b33bcdbaf5.tar.gz |
Avoid more integer overflows on string size calculations.
* category.c (Fmake_category_set):
* xdisp.c (get_overlay_arrow_glyph_row):
* w32font.c (intern_font_name): Prefer ptrdiff_t to int.
Diffstat (limited to 'src/xdisp.c')
-rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index b697b803049..3a895164fe2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -18858,7 +18858,7 @@ get_overlay_arrow_glyph_row (struct window *w, Lisp_Object overlay_arrow_string) struct buffer *buffer = XBUFFER (w->contents); struct buffer *old = current_buffer; const unsigned char *arrow_string = SDATA (overlay_arrow_string); - int arrow_len = SCHARS (overlay_arrow_string); + ptrdiff_t arrow_len = SCHARS (overlay_arrow_string); const unsigned char *arrow_end = arrow_string + arrow_len; const unsigned char *p; struct it it; |