Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-chunker
Commits
29aeb2c8
Unverified
Commit
29aeb2c8
authored
Oct 06, 2019
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Combine if conditions
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protocol.ai
>
parent
8dc88590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
buzhash.go
buzhash.go
+1
-4
No files found.
buzhash.go
View file @
29aeb2c8
...
...
@@ -55,10 +55,7 @@ func (b *Buzhash) NextBytes() ([]byte, error) {
state
=
state
^
bytehash
[
buf
[
i
]]
}
for
;
state
&
buzMask
!=
0
;
i
++
{
if
i
>=
buzMax
{
break
}
for
;
state
&
buzMask
!=
0
&&
i
<
buzMax
;
i
++
{
state
=
bits
.
RotateLeft32
(
state
,
1
)
^
bytehash
[
buf
[
i
-
32
]]
^
bytehash
[
buf
[
i
]]
}
...
...
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