summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2019-06-19 12:40:46 -0400
committerMatt Turner <mattst88@gmail.com>2019-06-19 12:40:46 -0400
commitdd5cedb7cd631cf4aeaadfd9cb993f0086857dbd (patch)
tree1be4c9bc299bbf1765ce4693ba096a84bf0aa1cd
parenta42ee93c10bf9a63c22e0642d6e51877fba8dae5 (diff)
Replace open-coded FP3232_TO_DOUBLE
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/XExtInt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index ccd3238..d379876 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1749,8 +1749,7 @@ copy_classes(XIDeviceInfo* to, xXIAnyInfo* from, int *nclasses)
cls_lib->number = cls_wire->number;
cls_lib->scroll_type= cls_wire->scroll_type;
cls_lib->flags = cls_wire->flags;
- cls_lib->increment = cls_wire->increment.integral;
- cls_lib->increment += (unsigned int)cls_wire->increment.frac/(double)(1ULL << 32);
+ cls_lib->increment = FP3232_TO_DOUBLE(cls_wire->increment);
to->classes[cls_idx++] = any_lib;
}