Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove use of deprecated characters property.
  • Loading branch information
SpacyRicochet committed Oct 4, 2018
commit 06cdc9f9f779ca3c18fca97419060de0bde350ea
4 changes: 2 additions & 2 deletions Bloom Filter/Tests/BloomFilterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import XCTest
func djb2(_ x: String) -> Int {
var hash = 5381

for char in x.characters {
for char in x {
hash = ((hash << 5) &+ hash) &+ char.hashValue
}

Expand All @@ -16,7 +16,7 @@ func djb2(_ x: String) -> Int {
func sdbm(_ x: String) -> Int {
var hash = 0

for char in x.characters {
for char in x {
hash = char.hashValue &+ (hash << 6) &+ (hash << 16) &- hash
}

Expand Down