Parcourir la source

fix: type alignment...

Sam Jaffe il y a 1 an
Parent
commit
1741770da1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      include/jvalidate/detail/simple_adapter.h

+ 1 - 1
include/jvalidate/detail/simple_adapter.h

@@ -173,7 +173,7 @@ public:
     // TODO(samjaffe): Needs type coercion
     // TODO(samjaffe): Needs type coercion
     switch (rhs_type) {
     switch (rhs_type) {
     case Type::Null:
     case Type::Null:
-      return const_value().isNull();
+      return type() == Type::Null;
     case Type::Boolean:
     case Type::Boolean:
       return rhs.as_boolean() == as_boolean();
       return rhs.as_boolean() == as_boolean();
     case Type::Integer:
     case Type::Integer: