mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-09 10:05:49 +01:00
Fixed floating point constants defined as double but expected as float
To preserve the accuracy of the operation, the C standard request that the mathematical operation is performed using double precision, but in many case this is not necessary so this patch fixes a few constants to avoid that conversion. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
1df08cc492
commit
79a95d7173
@@ -298,7 +298,7 @@ static void showData(_Panel * panel)
|
||||
sprintf(buffer, "%i", a);
|
||||
WMSetTextFieldText(panel->threT, buffer);
|
||||
|
||||
WMSetSliderValue(panel->speedS, (accel - 0.25) / 0.25);
|
||||
WMSetSliderValue(panel->speedS, (accel - 0.25F) / 0.25F);
|
||||
|
||||
panel->acceleration = accel;
|
||||
sprintf(buffer, "%.2f", accel);
|
||||
|
||||
Reference in New Issue
Block a user