From 4548d15dde1e09ce82e9b138daf95cdc18bec32a Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 19 Apr 2019 12:26:37 +0200 Subject: [PATCH] Fix spin_damp datatype --- src/autotune.c | 2 +- src/selftest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autotune.c b/src/autotune.c index a6e17d1a4..de54fd063 100644 --- a/src/autotune.c +++ b/src/autotune.c @@ -20,7 +20,7 @@ static double try_run (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_par const u32 kernel_power_try = device_param->hardware_power * kernel_accel; - float spin_damp_sav = device_param->spin_damp; + const double spin_damp_sav = device_param->spin_damp; device_param->spin_damp = 0; diff --git a/src/selftest.c b/src/selftest.c index 751ec50c0..89a527298 100644 --- a/src/selftest.c +++ b/src/selftest.c @@ -324,7 +324,7 @@ static int selftest (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param // main : run the kernel - const u32 spin_damp_sav = device_param->spin_damp; + const double spin_damp_sav = device_param->spin_damp; device_param->spin_damp = 0;