Fix midnight coding issues.
authorCryptoManiac <balthazar@yandex.ru>
Sun, 11 Oct 2015 17:12:36 +0000 (10:12 -0700)
committerCryptoManiac <balthazar@yandex.ru>
Sun, 11 Oct 2015 17:12:36 +0000 (10:12 -0700)
src/crypto/sha2/asm/sha2-x86.S
src/rpcmining.cpp

index 044630f..c66ef09 100644 (file)
@@ -1200,12 +1200,12 @@ _sha256_use_ssse3:
     movl    $1, %eax
     cpuid
     andl    $0x00000200, %ecx
-    jnz sha256_use_ssse3
+    jnz sha256_use_ssse3_done
     xorl    %eax, %eax
     popl    %ebx
     ret
     
-sha256_use_ssse3:
+sha256_use_ssse3_done:
     movl    $1, %eax
     popl    %ebx
     ret
index 63b4e37..a9972c6 100644 (file)
@@ -101,7 +101,7 @@ Value scaninput(const Array& params, bool fHelp)
     uint32_t nBits = GetNextTargetRequired(pindexBest, true);
 
     const Value& diff_v = find_value(scanParams, "difficulty");
-    if (diff_v.type() == real_type)
+    if (diff_v.type() == real_type || diff_v.type() == int_type)
     {
         double dDiff = diff_v.get_real();
         if (dDiff <= 0)