Mercurial > ecos
diff packages/infra/current/src/diag.cxx @ 2391:8cd3873de8fa
* src/diag.cxx: when printing a long long, should not truncate
its value to a long or int size
| author | jlarmour |
|---|---|
| date | Thu, 31 May 2007 16:00:55 +0000 |
| parents | ae242bae5abc |
| children | b9bdcb70cbde |
line wrap: on
line diff
--- 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;
