mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Sync changes.
This commit is contained in:
@@ -51,13 +51,15 @@
|
|||||||
#include "workers/Workers.h"
|
#include "workers/Workers.h"
|
||||||
|
|
||||||
|
|
||||||
static inline double normalize(double d)
|
static inline rapidjson::Value normalize(double d)
|
||||||
{
|
{
|
||||||
|
using namespace rapidjson;
|
||||||
|
|
||||||
if (!isnormal(d)) {
|
if (!isnormal(d)) {
|
||||||
return 0.0;
|
return Value(kNullType);
|
||||||
}
|
}
|
||||||
|
|
||||||
return floor(d * 100.0) / 100.0;
|
return Value(floor(d * 100.0) / 100.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,9 @@
|
|||||||
#define APP_VER_PATCH 2
|
#define APP_VER_PATCH 2
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
# if (_MSC_VER >= 1910)
|
# if (_MSC_VER >= 1920)
|
||||||
|
# define MSVC_VERSION 2019
|
||||||
|
# elif (_MSC_VER >= 1910 && _MSC_VER < 1920)
|
||||||
# define MSVC_VERSION 2017
|
# define MSVC_VERSION 2017
|
||||||
# elif _MSC_VER == 1900
|
# elif _MSC_VER == 1900
|
||||||
# define MSVC_VERSION 2015
|
# define MSVC_VERSION 2015
|
||||||
|
|||||||
Reference in New Issue
Block a user