diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-08-03 05:34:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-08-03 05:34:44 -0700 |
commit | 8f88f7d3c5da38cd2d781770b533dc6c93c52d59 (patch) | |
tree | a476fa662f618c23f55cfd5999425217f489de92 /lib | |
parent | 5fe16efb24c1b1a89959f7af3c886a4022c8f1b1 (diff) | |
download | emacs-8f88f7d3c5da38cd2d781770b533dc6c93c52d59.tar.gz |
Avoid undefined behavior with signed left shift.
Caught by 'gcc -fsanitize=undefined'.
* dispextern.h, scroll.c (scrolling_max_lines_saved, scrolling_1):
* dispnew.c (line_hash_code, scrolling):
* scroll.c (calculate_scrolling, calculate_direct_scrolling):
Use 'unsigned', not 'int', for line hashes.
(scrolling_max_lines_saved): Avoid mystery constants for hash sizes.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions