From: Hyeongseok Oh Date: Tue, 30 Aug 2016 02:12:10 +0000 (+0900) Subject: modify conditional statement and align for formatting X-Git-Tag: submit/tizen/20210909.063632~11030^2~9461^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd6db8817738b871a90d3d6c619541265e9237a9;p=platform%2Fupstream%2Fdotnet%2Fruntime.git modify conditional statement and align for formatting Commit migrated from https://github.com/dotnet/coreclr/commit/88d73f77e6de3e48674c2d2ce18bb8955e102abd --- diff --git a/src/coreclr/src/jit/gentree.cpp b/src/coreclr/src/jit/gentree.cpp index 4c04fd2..39245ba 100644 --- a/src/coreclr/src/jit/gentree.cpp +++ b/src/coreclr/src/jit/gentree.cpp @@ -12047,9 +12047,8 @@ GenTreePtr Compiler::gtFoldExprConst(GenTreePtr tree) return tree; } - if (d1 < 0.0) { - if (tree->CastToType() == TYP_CHAR || tree->CastToType() == TYP_UBYTE || - tree->CastToType() == TYP_UINT || tree->CastToType() == TYP_ULONG) + if (d1 <= -1.0 && varTypeIsUnsigned(tree->CastToType())) + { return tree; }