Skip to content

Commit 5f29501

Browse files
committed
(v3:security) fix compiler warning
1 parent 98e1ecb commit 5f29501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snmp/v3/security.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class SNMP::V3::Security
171171
while password_index < 1048576
172172
initial = password_index % password_length
173173
rotated = password[initial..-1] + password[0, initial]
174-
buffer = rotated * (64 / rotated.size) + rotated[0, 64 % rotated.size]
174+
buffer = rotated * (64 // rotated.size) + rotated[0, 64 % rotated.size]
175175
password_index += 64
176176
@digest << buffer
177177
end

0 commit comments

Comments
 (0)