From 12e60b72731462a094ab7d77402a808f90359e38 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 23 Jul 2023 13:08:03 +0900 Subject: [PATCH] internal/shader: reduce shaderir.ConstType usages Updates #2550 --- internal/shader/expr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/shader/expr.go b/internal/shader/expr.go index 9362e3579..706c9a7b2 100644 --- a/internal/shader/expr.go +++ b/internal/shader/expr.go @@ -58,7 +58,7 @@ func isValidForModOp(lhs, rhs *shaderir.Expr, lhst, rhst shaderir.Type) bool { if s.Const == nil { return false } - if s.ConstType == shaderir.ConstTypeInt { + if s.Const.Kind() == gconstant.Int { return true } if canTruncateToInteger(s.Const) {