Use correct bitfield offset for INCRBY using Lettuce.
Closes #2903 Original pull request: #2901
This commit is contained in:
committed by
Mark Paluch
parent
3ab09fbd57
commit
2809186e4d
@@ -79,6 +79,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Chris Bono
|
||||
* @author Vikas Garg
|
||||
* @author John Blum
|
||||
* @author Roman Osadchuk
|
||||
*/
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public abstract class LettuceConverters extends Converters {
|
||||
@@ -720,7 +721,7 @@ public abstract class LettuceConverters extends Converters {
|
||||
args = args.overflow(type);
|
||||
}
|
||||
|
||||
args = args.incrBy(bitFieldType, (int) subCommand.getOffset().getValue(), ((BitFieldIncrBy) subCommand).getValue());
|
||||
args = args.incrBy(bitFieldType, offset, ((BitFieldIncrBy) subCommand).getValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user