From: Gabe Black <gblack@eecs.umich.edu> Date: Wed, 26 Sep 2007 03:07:06 +0000 (-0700) Subject: Condition Codes: Fix type error. X-Git-Tag: m5_2.0_beta4~94 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25b48746642a0b5df15bdf193272a155ca7c9422;p=gem5.git Condition Codes: Fix type error. --HG-- extra : convert_revision : 99f6c232cc421c6f741a8a11c029285e599eb183 --- diff --git a/src/base/condcodes.hh b/src/base/condcodes.hh index efff12dc8..98defdb70 100644 --- a/src/base/condcodes.hh +++ b/src/base/condcodes.hh @@ -54,7 +54,7 @@ inline bool findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2) { int shift = width - 1; - return ((src1 ^ ~src2) & (src1 ^ dest)) & (1 << shift); + return ((src1 ^ ~src2) & (src1 ^ dest)) & (1ULL << shift); } /**