Skip to content

Commit

Permalink
Merge pull request #5 from inhabitedtype/unsafe-array-operations
Browse files Browse the repository at this point in the history
unsafe-array-operations: Use unsafe array operations in deque
  • Loading branch information
seliopou authored Jun 23, 2017
2 parents 9847742 + 4d9a43b commit 597835d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/faraday.ml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ end = struct
if is_empty t then
raise Not_found
else
let result = t.elements.(t.front) in
t.elements.(t.front) <- sentinel;
let result = Array.unsafe_get t.elements t.front in
Array.unsafe_set t.elements t.front sentinel;
t.front <- t.front + 1;
result

Expand Down

0 comments on commit 597835d

Please sign in to comment.