From 67e00b97c6a00f0fbce6e3f9a2cd3fde26982d87 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Tue, 30 Aug 2011 11:08:53 -0700 Subject: [PATCH] Fix incorrect assertions in ConstExpr constructors --- expr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/expr.cpp b/expr.cpp index 5eb30755..ee409c33 100644 --- a/expr.cpp +++ b/expr.cpp @@ -3289,7 +3289,7 @@ ConstExpr::ConstExpr(const Type *t, uint8_t u, SourcePos p) : Expr(p) { type = t; type = type->GetAsConstType(); - assert(type == AtomicType::UniformUInt8); + assert(type == AtomicType::UniformConstUInt8); uint8Val[0] = u; } @@ -3329,7 +3329,7 @@ ConstExpr::ConstExpr(const Type *t, uint16_t u, SourcePos p) : Expr(p) { type = t; type = type->GetAsConstType(); - assert(type == AtomicType::UniformUInt16); + assert(type == AtomicType::UniformConstUInt16); uint16Val[0] = u; } @@ -3432,7 +3432,7 @@ ConstExpr::ConstExpr(const Type *t, uint64_t u, SourcePos p) : Expr(p) { type = t; type = type->GetAsConstType(); - assert(type == AtomicType::UniformUInt64); + assert(type == AtomicType::UniformConstUInt64); uint64Val[0] = u; }