diff --git a/ccminer.cpp b/ccminer.cpp index 12f704f..2bc231b 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -1067,7 +1067,7 @@ static bool get_mininginfo(CURL *curl, struct work *work) } key = json_object_get(res, "netmhashps"); if (key && json_is_real(key)) { - net_hashrate = (json_real_value(key) * 1e6); + net_hashrate = (uint64_t)(json_real_value(key) * 1e6); } key = json_object_get(res, "blocks"); if (key && json_is_integer(key)) { diff --git a/cpuminer-config.h b/cpuminer-config.h index 3172480..203b281 100644 --- a/cpuminer-config.h +++ b/cpuminer-config.h @@ -162,7 +162,7 @@ #define PACKAGE_NAME "ccminer" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "ccminer 1.6.5-C11" +#define PACKAGE_STRING "ccminer 1.6.6" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "ccminer" @@ -171,7 +171,7 @@ #define PACKAGE_URL "http://github.com/tpruvot/ccminer" /* Define to the version of this package. */ -#define PACKAGE_VERSION "1.6.5-C11" +#define PACKAGE_VERSION "1.6.6" /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be @@ -185,7 +185,7 @@ #define STDC_HEADERS 1 /* Version number of package */ -#define VERSION "1.6.5-C11" +#define VERSION "1.6.6" /* Define curl_free() as free() if our version of curl lacks curl_free. */ /* #undef curl_free */ diff --git a/nvml.cpp b/nvml.cpp index f810c8d..417a86a 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -338,7 +338,7 @@ int nvml_set_clocks(nvml_handle *nvmlh, int dev_id) nclocks = min(nclocks, 127); if (nclocks) nvmlh->nvmlDeviceGetSupportedMemoryClocks(nvmlh->devs[n], &nclocks, clocks); - for (int8_t u=0; u < nclocks; u++) { + for (uint8_t u=0; u < nclocks; u++) { // ordered by pstate (so highest is first memory clock - P0) if (clocks[u] <= mem_clk) { mem_clk = clocks[u];