diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-11-16 01:31:04 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-11-16 01:31:04 +0000 |
commit | 41979b80421aa9b7f9ff4aeacf57c696e2897c23 (patch) | |
tree | 3bdeac1f038c0057436f1f04ed073660b3841c13 /src | |
parent | 3f124f484d9fcdad7222de9b0951778a712e375b (diff) | |
download | emacs-41979b80421aa9b7f9ff4aeacf57c696e2897c23.tar.gz |
(XSCROLL_BAR): Extract from Lisp_Vector, not generic pointer.
Diffstat (limited to 'src')
-rw-r--r-- | src/xterm.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.h b/src/xterm.h index 32dab48cd1b..10d376f4fd1 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -527,12 +527,13 @@ struct scroll_bar { }; /* The number of elements a vector holding a struct scroll_bar needs. */ -#define SCROLL_BAR_VEC_SIZE \ - ((sizeof (struct scroll_bar) - sizeof (EMACS_INT) - sizeof (struct Lisp_Vector *)) \ +#define SCROLL_BAR_VEC_SIZE \ + ((sizeof (struct scroll_bar) \ + - sizeof (EMACS_INT) - sizeof (struct Lisp_Vector *)) \ / sizeof (Lisp_Object)) /* Turning a lisp vector value into a pointer to a struct scroll_bar. */ -#define XSCROLL_BAR(vec) ((struct scroll_bar *) XPNTR (vec)) +#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec)) /* Building a 32-bit C integer from two 16-bit lisp integers. */ |