diff options
Diffstat (limited to 'winsup/cygwin/profil.h')
-rw-r--r-- | winsup/cygwin/profil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/profil.h b/winsup/cygwin/profil.h index 582b2a7cb..7ec4dfa09 100644 --- a/winsup/cygwin/profil.h +++ b/winsup/cygwin/profil.h @@ -24,7 +24,7 @@ details. */ /* convert an index into an address */ #define PROFADDR(idx, base, scale) \ - ((base) + ((((idx) << 16) / (scale)) << 1)) + ((base) + ((((unsigned long long)(idx) << 16) / (scale)) << 1)) /* convert a bin size into a scale */ #define PROFSCALE(range, bins) (((bins) << 16) / ((range) >> 1)) |