Commit dd5cedb7 authored by Matt Turner's avatar Matt Turner

Replace open-coded FP3232_TO_DOUBLE

Signed-off-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
parent a42ee93c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment