diff options
Diffstat (limited to 'src/scroll.c')
| -rw-r--r-- | src/scroll.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scroll.c b/src/scroll.c index 86d775545b0..78ebe65bdcc 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -253,11 +253,11 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, | |||
| 253 | /* A queue for line insertions to be done. */ | 253 | /* A queue for line insertions to be done. */ |
| 254 | struct queue { int count, pos; }; | 254 | struct queue { int count, pos; }; |
| 255 | struct queue *queue_start | 255 | struct queue *queue_start |
| 256 | = (struct queue *) alloca (current_matrix->nrows * sizeof (struct queue)); | 256 | = alloca (current_matrix->nrows * sizeof *queue_start); |
| 257 | struct queue *queue = queue_start; | 257 | struct queue *queue = queue_start; |
| 258 | 258 | ||
| 259 | char *retained_p = (char *) alloca (window_size * sizeof (char)); | 259 | char *retained_p = alloca (window_size * sizeof *retained_p); |
| 260 | int *copy_from = (int *) alloca (window_size * sizeof (int)); | 260 | int *copy_from = alloca (window_size * sizeof *copy_from); |
| 261 | 261 | ||
| 262 | /* Zero means line is empty. */ | 262 | /* Zero means line is empty. */ |
| 263 | memset (retained_p, 0, window_size * sizeof (char)); | 263 | memset (retained_p, 0, window_size * sizeof (char)); |
| @@ -671,11 +671,11 @@ do_direct_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, | |||
| 671 | int write_follows_p = 1; | 671 | int write_follows_p = 1; |
| 672 | 672 | ||
| 673 | /* For each row in the new matrix what row of the old matrix it is. */ | 673 | /* For each row in the new matrix what row of the old matrix it is. */ |
| 674 | int *copy_from = (int *) alloca (window_size * sizeof (int)); | 674 | int *copy_from = alloca (window_size * sizeof *copy_from); |
| 675 | 675 | ||
| 676 | /* Non-zero for each row in the new matrix that is retained from the | 676 | /* Non-zero for each row in the new matrix that is retained from the |
| 677 | old matrix. Lines not retained are empty. */ | 677 | old matrix. Lines not retained are empty. */ |
| 678 | char *retained_p = (char *) alloca (window_size * sizeof (char)); | 678 | char *retained_p = alloca (window_size * sizeof *retained_p); |
| 679 | 679 | ||
| 680 | memset (retained_p, 0, window_size * sizeof (char)); | 680 | memset (retained_p, 0, window_size * sizeof (char)); |
| 681 | 681 | ||