summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfireice-uk <fireice2@o2.pl>2017-01-16 14:05:33 +0000
committerfireice-uk <fireice2@o2.pl>2017-01-16 14:05:33 +0000
commit0a32bad780000111d345938f186253cf9dfa4113 (patch)
tree382654145a8c7c7ba4313c558477de938ed48bd4
parent2e052dec102439bbee6231184744691aee64f993 (diff)
downloadxmr-stak-0a32bad780000111d345938f186253cf9dfa4113.zip
xmr-stak-0a32bad780000111d345938f186253cf9dfa4113.tar.gz
v1.1.0-v1.1.0 RC
-rw-r--r--jconf.cpp3
-rw-r--r--minethd.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/jconf.cpp b/jconf.cpp
index b6e447d..a14691e 100644
--- a/jconf.cpp
+++ b/jconf.cpp
@@ -235,7 +235,8 @@ bool jconf::parse_config(const char* sFilename)
fclose(pFile);
//Replace Unicode BOM with spaces - we always use UTF-8
- if(buffer[1] == 0xEF && buffer[2] == 0xBB && buffer[3] == 0xBF)
+ unsigned char* ubuffer = (unsigned char*)buffer;
+ if(ubuffer[1] == 0xEF && ubuffer[2] == 0xBB && ubuffer[3] == 0xBF)
{
buffer[1] = ' ';
buffer[2] = ' ';
diff --git a/minethd.cpp b/minethd.cpp
index 6300b5c..6390bed 100644
--- a/minethd.cpp
+++ b/minethd.cpp
@@ -243,7 +243,7 @@ bool minethd::self_test()
return false;
}
- bool bHasLp = ctx0->ctx_info[0] == 1 && ctx1->ctx_info[1];
+ bool bHasLp = ctx0->ctx_info[0] == 1 && ctx1->ctx_info[0] == 1;
size_t n = jconf::inst()->GetThreadCount();
jconf::thd_cfg cfg;
for (size_t i = 0; i < n; i++)
OpenPOWER on IntegriCloud