# HG changeset patch # User jlarmour # Date 1180627305 0 # Node ID b9bdcb70cbdedc5877ea234cfbcabef21d892381 # Parent 8cd3873de8faf200f026847053354f5c15796ebb Jifl tweak to last change diff --git a/packages/infra/current/src/diag.cxx b/packages/infra/current/src/diag.cxx --- a/packages/infra/current/src/diag.cxx +++ b/packages/infra/current/src/diag.cxx @@ -375,11 +375,9 @@ static int } } else { // Mask to unsigned, sized quantity - if (islonglong) { - // No need to mask - } else if (islong) { + if (islong) { val &= ((long long)1 << (sizeof(long) * 8)) - 1; - } else{ + } else if (!islonglong) { // no need to mask longlong val &= ((long long)1 << (sizeof(int) * 8)) - 1; } }