changeset 71837:b4bcd3aefbe8

(check_obarray): Cleanup wrong_type_argument use.
author Kim F. Storm <storm@cua.dk>
date Wed, 12 Jul 2006 13:19:27 +0000
parents 838fd2b04ce0
children a322faa9b90c
files src/lread.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/lread.c	Wed Jul 12 13:19:15 2006 +0000
+++ b/src/lread.c	Wed Jul 12 13:19:27 2006 +0000
@@ -1378,7 +1378,7 @@
   if (MARKERP (readcharfun))
     {
       if (NILP (start))
-	start = readcharfun;	
+	start = readcharfun;
     }
 
   if (BUFFERP (readcharfun))
@@ -1511,7 +1511,7 @@
       first_sexp = 0;
     }
 
-  build_load_history (sourcename, 
+  build_load_history (sourcename,
 		      stream || whole_buffer);
 
   UNGCPRO;
@@ -3249,12 +3249,11 @@
 check_obarray (obarray)
      Lisp_Object obarray;
 {
-  while (!VECTORP (obarray) || XVECTOR (obarray)->size == 0)
+  if (!VECTORP (obarray) || XVECTOR (obarray)->size == 0)
     {
       /* If Vobarray is now invalid, force it to be valid.  */
       if (EQ (Vobarray, obarray)) Vobarray = initial_obarray;
-
-      obarray = wrong_type_argument (Qvectorp, obarray);
+      wrong_type_argument (Qvectorp, obarray);
     }
   return obarray;
 }