• Paul Eggert's avatar
    Avoid undefined behavior with signed left shift. · 8f88f7d3
    Paul Eggert authored
    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.
    8f88f7d3
dispextern.h 120 KB