From 6fd2cf09fca0a8525c596bba1e86e904a9e4bcf5 Mon Sep 17 00:00:00 2001 From: Qiang Lee <18018968632@163.com> Date: Wed, 17 Apr 2019 15:24:49 +0800 Subject: [PATCH] DATAREDIS-971 - Fix BitFieldType initialization through BitFieldSubCommands.signed(). We now initialize with the correct signed preference. Original pull request: #447. --- .../data/redis/connection/BitFieldSubCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java b/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java index 3d5bccc94..f5b0bba62 100644 --- a/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java +++ b/src/main/java/org/springframework/data/redis/connection/BitFieldSubCommands.java @@ -447,7 +447,7 @@ public class BitFieldSubCommands implements Iterable { * @return */ public static BitFieldType signed(int bits) { - return new BitFieldType(false, bits); + return new BitFieldType(true, bits); } /**