shithub: mc

Download patch

ref: f1383ff55a560228d15cf59dabba30dee3e3daeb
parent: eaf77a290652b4ce336260a69726fc5d0cb3ca69
author: Ori Bernstein <[email protected]>
date: Mon Oct 21 17:34:08 EDT 2013

Add support for more atomic types.

    These should Just Work(tm) in theory.

--- a/6/simp.c
+++ b/6/simp.c
@@ -502,8 +502,6 @@
         case Tyvoid: case Tybad: case Tyvalist: case Tyvar:
         case Typaram: case Tyunres: case Tyname: case Ntypes:
         /* Should never show up */
-        case Tyint64: case Tyuint64: case Tylong:  case Tyulong:
-        case Tyfloat32: case Tyfloat64:
         case Tyslice: case Tyarray: 
             die("Unsupported type for compare");
             break;
@@ -510,6 +508,8 @@
         case Tybool: case Tychar: case Tybyte:
         case Tyint8: case Tyint16: case Tyint32: case Tyint:
         case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint:
+        case Tyint64: case Tyuint64: case Tylong:  case Tyulong:
+        case Tyfloat32: case Tyfloat64:
         case Typtr: case Tyfunc:
             v = mkexpr(pat->line, Oeq, pat, val, NULL);
             v->expr.type = mktype(pat->line, Tybool);