jitcraft/FixedArray.h
changeset 35 75bdaf9fcb25
parent 21 af5d8e985502
child 47 050939c6181e
     1.1 --- a/jitcraft/FixedArray.h	Tue Jul 03 00:43:29 2012 -0700
     1.2 +++ b/jitcraft/FixedArray.h	Tue Jul 03 00:45:23 2012 -0700
     1.3 @@ -52,7 +52,7 @@
     1.4      }
     1.5  
     1.6      static inline FixedArray *cast(Object *obj) {
     1.7 -        assert(obj->is(MapKind_FixedArray));
     1.8 +        assert(!obj || obj->is(MapKind_FixedArray));
     1.9          return reinterpret_cast<FixedArray *>(obj);
    1.10      }
    1.11  };
    1.12 @@ -82,7 +82,7 @@
    1.13      }
    1.14  
    1.15      static inline ByteArray *cast(Object *obj) {
    1.16 -        assert(obj->is(MapKind_ByteArray));
    1.17 +        assert(!obj || obj->is(MapKind_ByteArray));
    1.18          return reinterpret_cast<ByteArray *>(obj);
    1.19      }
    1.20  };