Skip to content

Commit

Permalink
Scores should be represented as doubles, not ints
Browse files Browse the repository at this point in the history
  • Loading branch information
pashields authored and xetorthio committed Aug 30, 2010
1 parent 6a7b1db commit 366b2a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public void zremrangeByRank(String key, int start, int end) {
.valueOf(end));
}

public void zremrangeByScore(String key, int start, int end) {
public void zremrangeByScore(String key, double start, double end) {
sendCommand("ZREMRANGEBYSCORE", key, String.valueOf(start), String
.valueOf(end));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/Jedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public int zremrangeByRank(String key, int start, int end) {
return client.getIntegerReply();
}

public int zremrangeByScore(String key, int start, int end) {
public int zremrangeByScore(String key, double start, double end) {
checkIsInMulti();
client.zremrangeByScore(key, start, end);
return client.getIntegerReply();
Expand Down

0 comments on commit 366b2a0

Please sign in to comment.