VirtualBox

Changeset 33522 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Oct 27, 2010 4:03:15 PM (14 years ago)
Author:
vboxsync
Message:

VCI: Bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VCICacheCore.cpp

    r33481 r33522  
    157157
    158158/** Node type: Internal node containing links to other nodes (VciTreeNodeInternal). */
    159 #define VCI_TREE_NODE_TYPE_INTERNAL UINT8_C(0x00000001)
     159#define VCI_TREE_NODE_TYPE_INTERNAL UINT8_C(0x01)
    160160/** Node type: Leaf of the tree (VciCacheExtent). */
    161 #define VCI_TREE_NODE_TYPE_LEAF     UINT8_C(0x00000002)
     161#define VCI_TREE_NODE_TYPE_LEAF     UINT8_C(0x02)
    162162
    163163/** Number of cache extents described by one node. */
    164 #define VCI_TREE_EXTENTS_PER_NODE        (sizeof(VciTreeNode)-1 / sizeof(VciCacheExtent))
     164#define VCI_TREE_EXTENTS_PER_NODE        ((sizeof(VciTreeNode)-1) / sizeof(VciCacheExtent))
    165165/** Number of internal nodes managed by one tree node. */
    166 #define VCI_TREE_INTERNAL_NODES_PER_NODE (sizeof(VciTreeNode)-1 / sizeof(VciTreeNodeInternal))
     166#define VCI_TREE_INTERNAL_NODES_PER_NODE ((sizeof(VciTreeNode)-1) / sizeof(VciTreeNodeInternal))
    167167
    168168/**
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