aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.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/coding.c
parent8c239ac3ed4f636810bc08959e1318b1a6e928ba (diff)
downloademacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.tar.gz
emacs-2e34157cd9e74150e79e0ce23236252b47fb5f1a.zip
Fix bugs with inappropriate mixing of Lisp_Object with int.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c
index b04912ceba6..75e4980ec1b 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -702,7 +702,9 @@ detect_coding_iso2022 (src, src_end)
702/* Set designation state into CODING. */ 702/* Set designation state into CODING. */
703#define DECODE_DESIGNATION(reg, dimension, chars, final_char) \ 703#define DECODE_DESIGNATION(reg, dimension, chars, final_char) \
704 do { \ 704 do { \
705 int charset = ISO_CHARSET_TABLE (dimension, chars, final_char); \ 705 int charset = ISO_CHARSET_TABLE (make_number (dimension), \
706 make_number (chars), \
707 make_number (final_char)); \
706 if (charset >= 0) \ 708 if (charset >= 0) \
707 { \ 709 { \
708 if (coding->direction == 1 \ 710 if (coding->direction == 1 \
@@ -3515,9 +3517,10 @@ which is a list of all the arguments given to `find-coding-system'.")
3515 || (EQ (operation, Qopen_network_stream) && INTEGERP (target)))) 3517 || (EQ (operation, Qopen_network_stream) && INTEGERP (target))))
3516 error ("Invalid %dth argument", XINT (target_idx) + 1); 3518 error ("Invalid %dth argument", XINT (target_idx) + 1);
3517 3519
3518 chain = (operation == Qinsert_file_contents || operation == Qwrite_region 3520 chain = ((EQ (operation, Qinsert_file_contents)
3521 || EQ (operation, Qwrite_region))
3519 ? Vfile_coding_system_alist 3522 ? Vfile_coding_system_alist
3520 : (operation == Qopen_network_stream 3523 : (EQ (operation, Qopen_network_stream)
3521 ? Vnetwork_coding_system_alist 3524 ? Vnetwork_coding_system_alist
3522 : Vprocess_coding_system_alist)); 3525 : Vprocess_coding_system_alist));
3523 if (NILP (chain)) 3526 if (NILP (chain))