diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-14 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-15 23:55:04 +0500 |
commit | fc662341e6f85da78ada0e443f6116b978f79f22 (patch) | |
tree | 1be1cc402a7a9cbc18d4eeea6b141354c2d559e3 /CPP/Common/MyMap.cpp | |
parent | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff) | |
download | 7zip-24.05.tar.gz 7zip-24.05.tar.bz2 7zip-24.05.zip |
24.0524.05
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; |