Skip to content

Commit b928695

Browse files
authored
[compiler-rt] fix typos (#160799)
fix typos
1 parent 1e01c02 commit b928695

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

compiler-rt/lib/fuzzer/FuzzerLoop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ void Fuzzer::PrintPulseAndReportSlowInput(const uint8_t *Data, size_t Size) {
448448
if (!(TotalNumberOfRuns & (TotalNumberOfRuns - 1)) &&
449449
secondsSinceProcessStartUp() >= 2)
450450
PrintStats("pulse ");
451-
auto Threshhold =
451+
auto Threshold =
452452
static_cast<long>(static_cast<double>(TimeOfLongestUnitInSeconds) * 1.1);
453-
if (TimeOfUnit > Threshhold && TimeOfUnit >= Options.ReportSlowUnits) {
453+
if (TimeOfUnit > Threshold && TimeOfUnit >= Options.ReportSlowUnits) {
454454
TimeOfLongestUnitInSeconds = TimeOfUnit;
455455
Printf("Slowest unit: %ld s:\n", TimeOfLongestUnitInSeconds);
456456
WriteUnitToFileWithPrefix({Data, Data + Size}, "slow-unit-");

compiler-rt/lib/fuzzer/FuzzerMutate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ size_t ChangeBinaryInteger(uint8_t *Data, size_t Size, Random &Rand) {
413413
T Add = static_cast<T>(Rand(21));
414414
Add -= 10;
415415
if (Rand.RandBool())
416-
Val = Bswap(T(Bswap(Val) + Add)); // Add assuming different endiannes.
416+
Val = Bswap(T(Bswap(Val) + Add)); // Add assuming different endianness.
417417
else
418-
Val = Val + Add; // Add assuming current endiannes.
418+
Val = Val + Add; // Add assuming current endianness.
419419
if (Add == 0 || Rand.RandBool()) // Maybe negate.
420420
Val = -Val;
421421
}

compiler-rt/lib/fuzzer/FuzzerUtilWindows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// clang-format off
2525
#include <windows.h>
2626
// These must be included after windows.h.
27-
// archicture need to be set before including
27+
// architecture need to be set before including
2828
// libloaderapi
2929
#include <libloaderapi.h>
3030
#include <stringapiset.h>

0 commit comments

Comments
 (0)