From 3dd9c4999766adb7badf4f1e55bb80b698fafd84 Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Wed, 11 Jul 2018 10:56:12 -0700 Subject: [PATCH] Use target_ssize_t for Lowering::CastInfo::(typeMin|typeMax|typeMask) --- src/jit/lower.cpp | 8 ++++---- src/jit/lower.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/jit/lower.cpp b/src/jit/lower.cpp index 13780ca1888c..85a5d8c082a9 100644 --- a/src/jit/lower.cpp +++ b/src/jit/lower.cpp @@ -5595,10 +5595,10 @@ void Lowering::getCastDescription(GenTree* treeNode, CastInfo* castInfo) if (castInfo->requiresOverflowCheck) { - ssize_t typeMin = 0; - ssize_t typeMax = 0; - ssize_t typeMask = 0; - bool signCheckOnly = false; + target_ssize_t typeMin = 0; + target_ssize_t typeMax = 0; + target_ssize_t typeMask = 0; + bool signCheckOnly = false; // Do we need to compare the value, or just check masks switch (dstType) diff --git a/src/jit/lower.h b/src/jit/lower.h index 656e1773245f..535d08194c7a 100644 --- a/src/jit/lower.h +++ b/src/jit/lower.h @@ -39,10 +39,10 @@ class Lowering : public Phase // All other fields are only meaningful if requiresOverflowCheck is set. - ssize_t typeMin; // Lowest storable value of the dest type - ssize_t typeMax; // Highest storable value of the dest type - ssize_t typeMask; // For converting from/to unsigned - bool signCheckOnly; // For converting between unsigned/signed int + target_ssize_t typeMin; // Lowest storable value of the dest type + target_ssize_t typeMax; // Highest storable value of the dest type + target_ssize_t typeMask; // For converting from/to unsigned + bool signCheckOnly; // For converting between unsigned/signed int }; static void getCastDescription(GenTree* treeNode, CastInfo* castInfo);