# HG changeset patch # User jlarmour # Date 1180627255 0 # Node ID 8cd3873de8faf200f026847053354f5c15796ebb # Parent c71501f372967598d95e760866dedac85bc34bcc * src/diag.cxx: when printing a long long, should not truncate its value to a long or int size diff --git a/packages/infra/current/ChangeLog b/packages/infra/current/ChangeLog --- a/packages/infra/current/ChangeLog +++ b/packages/infra/current/ChangeLog @@ -1,3 +1,8 @@ +2007-05-31 Rutger Hofman + + * src/diag.cxx: when printing a long long, should not truncate + its value to a long or int size + 2006-10-26 Stefan Sommerfeld * include/cyg_types.h: fixed typo, __GNU_PATCHLEVEL__ was checked, 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,7 +375,9 @@ static int } } else { // Mask to unsigned, sized quantity - if (islong) { + if (islonglong) { + // No need to mask + } else if (islong) { val &= ((long long)1 << (sizeof(long) * 8)) - 1; } else{ val &= ((long long)1 << (sizeof(int) * 8)) - 1;