VirtualBox

Changeset 107775 in vbox for trunk/include/iprt/cdefs.h


Ignore:
Timestamp:
Jan 15, 2025 1:03:17 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166911
Message:

Devices/Samples/DevPlayground.cpp: Fix possible integer overflow, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r107216 r107775  
    42504250# define _512K          UINT32_C(0x00080000)
    42514251#endif
    4252 /** 1 M (Mega)                 (1 048 576). */
     4252/** 1 M (Mega)                 (1 048 576). (32-bit) */
    42534253#if ARCH_BITS != 16
    42544254# define _1M                     0x00100000
    42554255#else
    42564256# define _1M            UINT32_C(0x00100000)
     4257#endif
     4258/** 1 M (Mega)                 (1 048 576). (64-bit) */
     4259#if ARCH_BITS != 16
     4260# define _1M64                   0x001000000LL
     4261#else
     4262# define _1M64          UINT64_C(0x001000000)
    42574263#endif
    42584264/** 2 M (Mega)                 (2 097 152). */
Note: See TracChangeset for help on using the changeset viewer.

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