瀏覽代碼

fix: type alignment...

Sam Jaffe 1 年之前
父節點
當前提交
1741770da1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     switch (rhs_type) {
     case Type::Null:
-      return const_value().isNull();
+      return type() == Type::Null;
     case Type::Boolean:
       return rhs.as_boolean() == as_boolean();
     case Type::Integer: