From 87f61e024128c4e311c7f784e93695dd2ec3d6f7 Mon Sep 17 00:00:00 2001 From: slangbot <186143334+slangbot@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:33:20 +0000 Subject: [PATCH] format code --- source/slang/slang-ir-wgsl-legalize.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/slang/slang-ir-wgsl-legalize.cpp b/source/slang/slang-ir-wgsl-legalize.cpp index 43ee215507..d1e7d33760 100644 --- a/source/slang/slang-ir-wgsl-legalize.cpp +++ b/source/slang/slang-ir-wgsl-legalize.cpp @@ -1516,16 +1516,15 @@ struct LegalizeWGSLEntryPointContext builder.replaceOperand(inst->getOperands(), newLhs); } else if ( - isIntegralType(inst->getOperand(0)->getDataType()) && - isIntegralType(inst->getOperand(1)->getDataType())) + isIntegralType(inst->getOperand(0)->getDataType()) && + isIntegralType(inst->getOperand(1)->getDataType())) { // If integer operands differ in signedness, convert the signed one to unsigned. // We're assuming that the cases where this is bad have already been caught by // common validation checks. IntInfo opIntInfo[2] = { getIntTypeInfo(inst->getOperand(0)->getDataType()), - getIntTypeInfo(inst->getOperand(1)->getDataType()) - }; + getIntTypeInfo(inst->getOperand(1)->getDataType())}; if (opIntInfo[0].isSigned != opIntInfo[1].isSigned) { int signedOpIndex = (int)opIntInfo[1].isSigned;