[project @ 2000-04-04 11:24:48 by sewardj]
authorsewardj <unknown>
Tue, 4 Apr 2000 11:24:48 +0000 (11:24 +0000)
committersewardj <unknown>
Tue, 4 Apr 2000 11:24:48 +0000 (11:24 +0000)
identToStr(): use whatIs(), not fst in switch.

ghc/interpreter/storage.c

index 8561d77..effd234 100644 (file)
@@ -9,8 +9,8 @@
  * included in the distribution.
  *
  * $RCSfile: storage.c,v $
- * $Revision: 1.59 $
- * $Date: 2000/04/04 01:07:49 $
+ * $Revision: 1.60 $
+ * $Date: 2000/04/04 11:24:48 $
  * ------------------------------------------------------------------------*/
 
 #include "hugsbasictypes.h"
@@ -101,7 +101,7 @@ Cell v; {
     if (!isPair(v)) {
         internal("identToStr");
     }
-    switch (fst(v)) {
+    switch (whatIs(v)) {
         case VARIDCELL  :
         case VAROPCELL  : 
         case CONIDCELL  :