diff options
| author | Paul Eggert | 2011-06-18 11:29:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 11:29:19 -0700 |
| commit | 8fcaf9cc8183ee825e4d59cb2c3471caee303c7d (patch) | |
| tree | 0b0261ca1e3274a332085de7e1f08250e66f1e1b | |
| parent | abe80cc6c183fd4af85749baeb5e11f6d8f5fd50 (diff) | |
| download | emacs-8fcaf9cc8183ee825e4d59cb2c3471caee303c7d.tar.gz emacs-8fcaf9cc8183ee825e4d59cb2c3471caee303c7d.zip | |
* indent.c (Fcompute_motion): Don't assume hscroll and tab offset fit in int.
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/indent.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7795d3dd221..00c255170ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | * indent.c (sane_tab_width): New function. | 3 | * indent.c (sane_tab_width): New function. |
| 4 | (current_column, scan_for_column, Findent_to, position_indentation) | 4 | (current_column, scan_for_column, Findent_to, position_indentation) |
| 5 | (compute_motion): Use it. This is just for clarity. | 5 | (compute_motion): Use it. This is just for clarity. |
| 6 | (Fcompute_motion): Don't assume hscroll and tab offset fit in int. | ||
| 6 | 7 | ||
| 7 | * image.c (xbm_image_p): Don't assume stated width and height fit in int. | 8 | * image.c (xbm_image_p): Don't assume stated width and height fit in int. |
| 8 | 9 | ||
diff --git a/src/indent.c b/src/indent.c index 809631786fc..02d99d14ded 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1743,7 +1743,7 @@ visible section of the buffer, and pass LINE and COL as TOPOS. */) | |||
| 1743 | struct window *w; | 1743 | struct window *w; |
| 1744 | Lisp_Object bufpos, hpos, vpos, prevhpos; | 1744 | Lisp_Object bufpos, hpos, vpos, prevhpos; |
| 1745 | struct position *pos; | 1745 | struct position *pos; |
| 1746 | int hscroll, tab_offset; | 1746 | EMACS_INT hscroll, tab_offset; |
| 1747 | 1747 | ||
| 1748 | CHECK_NUMBER_COERCE_MARKER (from); | 1748 | CHECK_NUMBER_COERCE_MARKER (from); |
| 1749 | CHECK_CONS (frompos); | 1749 | CHECK_CONS (frompos); |