mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-30 22:46:07 +00:00
chore: fix some typos in comments
Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
parent
4ab9329dda
commit
34475db2b3
4 changed files with 5 additions and 5 deletions
2
src/3rdparty/libethash/ethash.h
vendored
2
src/3rdparty/libethash/ethash.h
vendored
|
@ -50,7 +50,7 @@ typedef struct ethash_h256 { uint8_t b[32]; } ethash_h256_t;
|
||||||
// usage:
|
// usage:
|
||||||
// ethash_h256_t a = ethash_h256_static_init(1, 2, 3, ... )
|
// ethash_h256_t a = ethash_h256_static_init(1, 2, 3, ... )
|
||||||
// have to provide all 32 values. If you don't provide all the rest
|
// have to provide all 32 values. If you don't provide all the rest
|
||||||
// will simply be unitialized (not guranteed to be 0)
|
// will simply be unitialized (not guaranteed to be 0)
|
||||||
#define ethash_h256_static_init(...) \
|
#define ethash_h256_static_init(...) \
|
||||||
{ {__VA_ARGS__} }
|
{ {__VA_ARGS__} }
|
||||||
|
|
||||||
|
|
2
src/3rdparty/libethash/ethash_internal.h
vendored
2
src/3rdparty/libethash/ethash_internal.h
vendored
|
@ -68,7 +68,7 @@ static inline bool ethash_check_difficulty(
|
||||||
* @param nonce The block's nonce
|
* @param nonce The block's nonce
|
||||||
* @param mix_hash The mix digest hash
|
* @param mix_hash The mix digest hash
|
||||||
* @param boundary The boundary is defined as (2^256 / difficulty)
|
* @param boundary The boundary is defined as (2^256 / difficulty)
|
||||||
* @return true for succesful pre-verification and false otherwise
|
* @return true for successful pre-verification and false otherwise
|
||||||
*/
|
*/
|
||||||
bool ethash_quick_check_difficulty(
|
bool ethash_quick_check_difficulty(
|
||||||
ethash_h256_t const* header_hash,
|
ethash_h256_t const* header_hash,
|
||||||
|
|
4
src/3rdparty/rapidjson/document.h
vendored
4
src/3rdparty/rapidjson/document.h
vendored
|
@ -1805,7 +1805,7 @@ public:
|
||||||
uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; }
|
uint64_t GetUint64() const { RAPIDJSON_ASSERT(data_.f.flags & kUint64Flag); return data_.n.u64; }
|
||||||
|
|
||||||
//! Get the value as double type.
|
//! Get the value as double type.
|
||||||
/*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the converison is lossless.
|
/*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessDouble() to check whether the conversion is lossless.
|
||||||
*/
|
*/
|
||||||
double GetDouble() const {
|
double GetDouble() const {
|
||||||
RAPIDJSON_ASSERT(IsNumber());
|
RAPIDJSON_ASSERT(IsNumber());
|
||||||
|
@ -1817,7 +1817,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Get the value as float type.
|
//! Get the value as float type.
|
||||||
/*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the converison is lossless.
|
/*! \note If the value is 64-bit integer type, it may lose precision. Use \c IsLosslessFloat() to check whether the conversion is lossless.
|
||||||
*/
|
*/
|
||||||
float GetFloat() const {
|
float GetFloat() const {
|
||||||
return static_cast<float>(GetDouble());
|
return static_cast<float>(GetDouble());
|
||||||
|
|
2
src/3rdparty/rapidjson/reader.h
vendored
2
src/3rdparty/rapidjson/reader.h
vendored
|
@ -1002,7 +1002,7 @@ private:
|
||||||
//!@endcond
|
//!@endcond
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
// Scan and copy string before "\\\"" or < 0x20. This is an optional optimzation.
|
// Scan and copy string before "\\\"" or < 0x20. This is an optional optimization.
|
||||||
if (!(parseFlags & kParseValidateEncodingFlag))
|
if (!(parseFlags & kParseValidateEncodingFlag))
|
||||||
ScanCopyUnescapedString(is, os);
|
ScanCopyUnescapedString(is, os);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue