aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-04 20:44:52 +0000
committerRichard M. Stallman1997-07-04 20:44:52 +0000
commit2e34157cd9e74150e79e0ce23236252b47fb5f1a (patch)
tree418451da8380ec73d5d46dc648c07e6ad8af845f /src/syntax.c
parent8c239ac3ed4f636810bc08959e1318b1a6e928ba (diff)
downloademacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.tar.gz
emacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.zip
Fix bugs with inappropriate mixing of Lisp_Object with int.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 4a60e1e0267..f39b356d731 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -190,7 +190,7 @@ update_syntax_table (pos, count, init, object)
190 190
191 gl_state.current_syntax_table = tmp_table; 191 gl_state.current_syntax_table = tmp_table;
192 gl_state.old_prop = tmp_table; 192 gl_state.old_prop = tmp_table;
193 if (Fsyntax_table_p (tmp_table) == Qt) 193 if (EQ (Fsyntax_table_p (tmp_table), Qt))
194 { 194 {
195 gl_state.use_global = 0; 195 gl_state.use_global = 0;
196 } 196 }
@@ -665,7 +665,7 @@ DEFUN ("matching-paren", Fmatching_paren, Smatching_paren, 1, 1, 0,
665 char_int = XINT (character); 665 char_int = XINT (character);
666 code = SYNTAX (char_int); 666 code = SYNTAX (char_int);
667 if (code == Sopen || code == Sclose) 667 if (code == Sopen || code == Sclose)
668 return make_number (SYNTAX_MATCH (char_int)); 668 return SYNTAX_MATCH (char_int);
669 return Qnil; 669 return Qnil;
670} 670}
671 671
@@ -735,7 +735,7 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3,
735 p = XSTRING (newentry)->data; 735 p = XSTRING (newentry)->data;
736 code = (enum syntaxcode) syntax_spec_code[*p++]; 736 code = (enum syntaxcode) syntax_spec_code[*p++];
737 if (((int) code & 0377) == 0377) 737 if (((int) code & 0377) == 0377)
738 error ("invalid syntax description letter: %c", XINT (c)); 738 error ("invalid syntax description letter: %c", p[-1]);
739 739
740 if (code == Sinherit) 740 if (code == Sinherit)
741 { 741 {