VirtualBox

Changeset 62086 in vbox for trunk


Ignore:
Timestamp:
Jul 6, 2016 9:22:17 PM (9 years ago)
Author:
vboxsync
Message:

Avoid arithmetic on void *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/tests/test-mmap.c

    r37829 r62086  
    415415                   The target expects this.  */
    416416                fail_unless (p1 == (void *)addr);
    417                 fail_unless (p2 == (void *)addr + pagesize);
    418                 fail_unless (p3 == (void *)addr + pagesize * 2);
    419                 fail_unless (p4 == (void *)addr + pagesize * 3);
     417                fail_unless (p2 == (void *)(addr + pagesize));
     418                fail_unless (p3 == (void *)(addr + pagesize * 2));
     419                fail_unless (p4 == (void *)(addr + pagesize * 3));
    420420
    421421                /* Verify that the file maps was made correctly.  */
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