Mercurial > ecos
changeset 2392:b9bdcb70cbde
Jifl tweak to last change
| author | jlarmour |
|---|---|
| date | Thu, 31 May 2007 16:01:45 +0000 |
| parents | 8cd3873de8fa |
| children | 5377ec428842 |
| files | packages/infra/current/src/diag.cxx |
| diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }
