diff options
Diffstat (limited to 'CPP/Common/MyMap.cpp')
-rw-r--r-- | CPP/Common/MyMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CPP/Common/MyMap.cpp b/CPP/Common/MyMap.cpp index 0a200f0..d130aec 100644 --- a/CPP/Common/MyMap.cpp +++ b/CPP/Common/MyMap.cpp | |||
@@ -103,7 +103,7 @@ bool CMap32::Set(UInt32 key, UInt32 value) | |||
103 | n.IsLeaf[newBit] = 1; | 103 | n.IsLeaf[newBit] = 1; |
104 | n.IsLeaf[1 - newBit] = 0; | 104 | n.IsLeaf[1 - newBit] = 0; |
105 | n.Keys[newBit] = key; | 105 | n.Keys[newBit] = key; |
106 | n.Keys[1 - newBit] = Nodes.Size(); | 106 | n.Keys[1 - newBit] = (UInt32)Nodes.Size(); |
107 | Nodes.Add(e2); | 107 | Nodes.Add(e2); |
108 | return false; | 108 | return false; |
109 | } | 109 | } |
@@ -130,7 +130,7 @@ bool CMap32::Set(UInt32 key, UInt32 value) | |||
130 | e2.Len = (UInt16)(bitPos - (1 + i)); | 130 | e2.Len = (UInt16)(bitPos - (1 + i)); |
131 | 131 | ||
132 | n.IsLeaf[bit] = 0; | 132 | n.IsLeaf[bit] = 0; |
133 | n.Keys[bit] = Nodes.Size(); | 133 | n.Keys[bit] = (UInt32)Nodes.Size(); |
134 | 134 | ||
135 | Nodes.Add(e2); | 135 | Nodes.Add(e2); |
136 | return false; | 136 | return false; |