aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPo Lu2023-05-31 21:08:33 +0800
committerPo Lu2023-05-31 21:08:33 +0800
commit53f7cc2078c64fa169b167faa89f552fbafea18e (patch)
tree5462f3536fe14872fbb6ad949fd9407780d03852 /src/alloc.c
parent69c4bbc0d694594f43b02e9da5c236f3b9271b1d (diff)
downloademacs-53f7cc2078c64fa169b167faa89f552fbafea18e.tar.gz
emacs-53f7cc2078c64fa169b167faa89f552fbafea18e.zip
Fix build with Lisp_Object type checking
* configure.ac: Pass through `--enable-check-lisp-object-type' on Android. * src/alloc.c (android_make_lisp_symbol): * src/android.c: * src/androidfns.c (android_set_no_focus_on_map) (android_set_no_accept_focus): * src/androidfont.c (androidfont_match, androidfont_open_font): * src/androidselect.c (Fandroid_get_clipboard) (Fandroid_get_clipboard_targets): * src/keyboard.c (make_lispy_event, syms_of_keyboard): * src/sfntfont.c (sfnt_enum_font_1, sfntfont_list_1): * src/textconv.c (really_set_point_and_mark): Fix Lisp_Object and integer screw-ups.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 82b1c6b0355..c77bdc6372d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6195,14 +6195,15 @@ static Lisp_Object
6195android_make_lisp_symbol (struct Lisp_Symbol *sym) 6195android_make_lisp_symbol (struct Lisp_Symbol *sym)
6196{ 6196{
6197 intptr_t symoffset; 6197 intptr_t symoffset;
6198 Lisp_Object a;
6199 6198
6200 symoffset = (intptr_t) sym; 6199 symoffset = (intptr_t) sym;
6201 INT_SUBTRACT_WRAPV (symoffset, (intptr_t) &lispsym, 6200 INT_SUBTRACT_WRAPV (symoffset, (intptr_t) &lispsym,
6202 &symoffset); 6201 &symoffset);
6203 6202
6204 a = TAG_PTR (Lisp_Symbol, symoffset); 6203 {
6205 return a; 6204 Lisp_Object a = TAG_PTR (Lisp_Symbol, symoffset);
6205 return a;
6206 }
6206} 6207}
6207 6208
6208#endif 6209#endif