changeset 88862:108e2535280d

(adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
author Dave Love <fx@gnu.org>
date Wed, 17 Jul 2002 10:20:32 +0000
parents 5ca38cce6f72
children 66e4b336caba
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Jul 16 22:30:36 2002 +0000
+++ b/src/coding.c	Wed Jul 17 10:20:32 2002 +0000
@@ -1,7 +1,7 @@
 /* Coding system handler (conversion, detection, and etc).
    Copyright (C) 1995, 1997, 1998 Electrotechnical Laboratory, JAPAN.
    Licensed to the Free Software Foundation.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    Copyright (C) 2001, 2002
      National Institute of Advanced Industrial Science and Technology (AIST)
      Registration Number H13PRO009
@@ -4982,9 +4982,9 @@
   eol_type = CODING_ID_EOL_TYPE (coding->id);
   if (eol_seen & EOL_SEEN_LF)
     coding->id = CODING_SYSTEM_ID (AREF (eol_type, 0));
-  else if (eol_type & EOL_SEEN_CRLF)
+  else if (eol_seen & EOL_SEEN_CRLF)
     coding->id = CODING_SYSTEM_ID (AREF (eol_type, 1));
-  else if (eol_type & EOL_SEEN_CR)
+  else if (eol_seen & EOL_SEEN_CR)
     coding->id = CODING_SYSTEM_ID (AREF (eol_type, 2));
 }