VirtualBox

Changeset 14043 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 10, 2008 9:54:57 PM (16 years ago)
Author:
vboxsync
Message:

com/array.h: Fixed some very noisy 64-bit MSC warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r13956 r14043  
    398398    static ULONG VarCount (size_t aSize)
    399399    {
    400         if (sizeof (T) % 8 == 0) return (ULONG) (sizeof (T) / 8) * aSize;
    401         if (sizeof (T) % 4 == 0) return (ULONG) (sizeof (T) / 4) * aSize;
    402         if (sizeof (T) % 2 == 0) return (ULONG) (sizeof (T) / 2) * aSize;
     400        if (sizeof (T) % 8 == 0) return (ULONG) ((sizeof (T) / 8) * aSize);
     401        if (sizeof (T) % 4 == 0) return (ULONG) ((sizeof (T) / 4) * aSize);
     402        if (sizeof (T) % 2 == 0) return (ULONG) ((sizeof (T) / 2) * aSize);
    403403        return (ULONG) sizeof (T) * aSize;
    404404    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette