Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions stl/inc/numeric
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,11 @@ _NODISCARD constexpr common_type_t<_Mt, _Nt> gcd(const _Mt _Mx, const _Nt _Nx) n

_Nx_magnitude -= _Mx_magnitude;
if (_Nx_magnitude == 0U) {
break;
return static_cast<_Common>(_Mx_magnitude << _Common_factors_of_2);
}

_Nx_trailing_zeroes = static_cast<unsigned long>(_Countr_zero_impl(_Nx_magnitude));
}
return static_cast<_Common>(_Mx_magnitude << _Common_factors_of_2);
});
}

Expand Down
6 changes: 3 additions & 3 deletions stl/src/fiopen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ namespace {
ios_base::out | ios_base::in | ios_base::trunc | ios_base::binary | ios_base::_Noreplace,
};

FILE* fp = nullptr;
ios_base::openmode atendflag = mode & ios_base::ate;
FILE* fp = nullptr;
const bool at_end = (mode & ios_base::ate) != 0;

if (mode & ios_base::_Nocreate) {
mode |= ios_base::in; // file must exist
Expand All @@ -75,7 +75,7 @@ namespace {
return nullptr; // open failed
}

if (atendflag && fseek(fp, 0, SEEK_END) != 0) {
if (at_end && fseek(fp, 0, SEEK_END) != 0) {
fclose(fp); // can't position at end
return nullptr;
}
Expand Down
2 changes: 0 additions & 2 deletions stl/src/ppltasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ namespace Concurrency {
case APTTYPE_STA:
case APTTYPE_MAINSTA:
return true;
break;
case APTTYPE_NA:
switch (_AptTypeQualifier) {
// A thread executing in a neutral apartment is either STA or MTA. To find out if this thread is
Expand All @@ -316,7 +315,6 @@ namespace Concurrency {
case APTTYPEQUALIFIER_NA_ON_STA:
case APTTYPEQUALIFIER_NA_ON_MAINSTA:
return true;
break;
}
break;
}
Expand Down