VirtualBox

Changeset 14043

Show
Ignore:
Timestamp:
11/10/08 22:54:57 (2 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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    } 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy