summaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie/comptrie_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/containers/comptrie/comptrie_impl.cpp')
-rw-r--r--library/cpp/containers/comptrie/comptrie_impl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_impl.cpp b/library/cpp/containers/comptrie/comptrie_impl.cpp
index a8c1f76bfb4..a116ab6d1ef 100644
--- a/library/cpp/containers/comptrie/comptrie_impl.cpp
+++ b/library/cpp/containers/comptrie/comptrie_impl.cpp
@@ -8,26 +8,26 @@
namespace NCompactTrie {
size_t MeasureOffset(size_t offset) {
int n = 0;
-
+
while (offset) {
offset >>= 8;
++n;
}
return n;
- }
+ }
size_t PackOffset(char* buffer, size_t offset) {
size_t len = MeasureOffset(offset);
size_t i = len;
-
+
while (i--) {
buffer[i] = (char)(offset & 0xFF);
offset >>= 8;
}
return len;
- }
+ }
void ShowProgress(size_t n) {
if (n % 1000000 == 0)
@@ -35,5 +35,5 @@ namespace NCompactTrie {
else if (n % 20000 == 0)
Cerr << ".";
}
-
-}
+
+}