Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
711fa790
Verified
Commit
711fa790
authored
Oct 03, 2020
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix bug
parent
c5230713
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Ordering-inl.hpp
lib/kyut/Ordering-inl.hpp
+4
-4
No files found.
lib/kyut/Ordering-inl.hpp
View file @
711fa790
...
...
@@ -55,9 +55,9 @@ namespace kyut {
std
::
size_t
size_bits
=
0
;
for
(
std
::
size_t
i
=
0
;
i
<
count
;
i
+=
chunk_size
)
{
const
std
::
size_t
chunk_size
=
(
std
::
min
)(
chunk_size
,
count
-
i
);
const
std
::
size_t
n
=
(
std
::
min
)(
chunk_size
,
count
-
i
);
const
auto
chunk_begin
=
begin
+
i
;
const
auto
chunk_end
=
chunk_begin
+
chunk_size
;
const
auto
chunk_end
=
chunk_begin
+
n
;
size_bits
+=
embed_in_chunk
(
r
,
chunk_begin
,
chunk_end
,
less
);
}
...
...
@@ -127,9 +127,9 @@ namespace kyut {
std
::
size_t
size_bits
=
0
;
for
(
std
::
size_t
i
=
0
;
i
<
count
;
i
+=
chunk_size
)
{
const
std
::
size_t
chunk_size
=
(
std
::
min
)(
chunk_size
,
count
-
i
);
const
std
::
size_t
n
=
(
std
::
min
)(
chunk_size
,
count
-
i
);
const
auto
chunk_begin
=
begin
+
i
;
const
auto
chunk_end
=
chunk_begin
+
chunk_size
;
const
auto
chunk_end
=
chunk_begin
+
n
;
size_bits
+=
extract_from_chunk
(
w
,
chunk_begin
,
chunk_end
,
less
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment