unfck lint

This commit is contained in:
IRainman 2026-01-21 03:36:32 +03:00
parent 6d6acd4364
commit 4a0bd5e9ea
2 changed files with 8 additions and 8 deletions

View File

@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) {
class RandomEngine { class RandomEngine {
public: public:
RandomEngine() = delete; RandomEngine() = delete;
RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){}; RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {};
uint64_t next() { uint64_t next() {
// Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h
@ -258,9 +258,9 @@ bool tester(uint64_t seed, size_t volume) {
int main() { int main() {
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \ #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \
defined(sun) || defined(__sun) defined(sun) || defined(__sun)
std::cout << "Warning: msys/cygwin or solaris detected. This particular test is likely " std::cout << "Warning: msys/cygwin or solaris detected. This particular test "
"to generate false failures due to our reliance on the " "is likely to generate false failures due to our reliance on "
"underlying runtime library." "the underlying runtime library."
<< std::endl; << std::endl;
return EXIT_SUCCESS; return EXIT_SUCCESS;
#else #else

View File

@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) {
class RandomEngine { class RandomEngine {
public: public:
RandomEngine() = delete; RandomEngine() = delete;
RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){}; RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {};
uint64_t next() { uint64_t next() {
// Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h
@ -253,9 +253,9 @@ bool tester(uint64_t seed, size_t volume) {
int main() { int main() {
#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \ #if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || \
defined(sun) || defined(__sun) defined(sun) || defined(__sun)
std::cout << "Warning: msys/cygwin or solaris detected. This particular test is likely " std::cout << "Warning: msys/cygwin or solaris detected. This particular test "
"to generate false failures due to our reliance on the " "is likely to generate false failures due to our reliance on "
"underlying runtime library." "the underlying runtime library."
<< std::endl; << std::endl;
return EXIT_SUCCESS; return EXIT_SUCCESS;
#else #else