Skip to content

Commit a2c2e52

Browse files
authored
Update RedisResp.swift
1 parent d3c3fff commit a2c2e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftRedis/RedisResp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class RedisResp {
251251
/* 5X faster than using find() above. range() is expensive */
252252
var i = from
253253
while true {
254-
while i <= buffer.count {
254+
while i < buffer.count {
255255
if buffer[i] == 13 && buffer[i+1] == 10{
256256
return i
257257
}

0 commit comments

Comments
 (0)