Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored and github-actions[bot] committed Jan 28, 2024
1 parent 5532b1c commit 9e9e2da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/REL/ID.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace REL
void* _mapping{ nullptr };
void* _view{ nullptr };
};
}
}

class IDDatabase
{
Expand Down
4 changes: 2 additions & 2 deletions include/REL/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace REL
{
class Version
class Version
{
public:
using value_type = std::uint16_t;
Expand Down Expand Up @@ -95,7 +95,7 @@ namespace REL

Version version;
std::wistringstream ss(std::wstring(static_cast<const wchar_t*>(verBuf), verLen));
std::wstring token;
std::wstring token;
for (std::size_t i = 0; i < 4 && std::getline(ss, token, L'.'); ++i) {
version[i] = static_cast<std::uint16_t>(std::stoi(token));
}
Expand Down
2 changes: 1 addition & 1 deletion src/REL/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace REL
constexpr auto size = std::extent_v<decltype(section.name)>;
const auto len = std::min(a_elem.first.size(), size);
return std::memcmp(a_elem.first.data(), section.name, len) == 0 &&
(section.characteristics & a_elem.second) == a_elem.second;
(section.characteristics & a_elem.second) == a_elem.second;
});
if (it != SEGMENTS.end()) {
const auto idx = static_cast<std::size_t>(std::distance(SEGMENTS.begin(), it));
Expand Down

0 comments on commit 9e9e2da

Please sign in to comment.