Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wbenny committed Jan 7, 2019
1 parent f09d66b commit 965c8f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/hvpp/hvpp/ia32/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class pa_t
bool operator!=(pa_t other) const noexcept { return value_ != other.value_; }
bool operator! ( ) const noexcept { return !value_; }

explicit operator bool() const noexcept { return value_ != 0; }

//
// Getters
//
Expand Down Expand Up @@ -232,7 +234,7 @@ class mapping_t
void* map(pa_t pa) noexcept
{
//
// Make this entry present & writeable.
// Make this entry present & writable.
//
pte_->present = true;
pte_->write = true;
Expand Down
2 changes: 1 addition & 1 deletion src/hvpp/hvpp/lib/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class bitmap_local
bitmap_local() : bitmap(buffer_, SIZE_IN_BITS) { }
bitmap_local(const bitmap_local& other) noexcept = delete;
bitmap_local(bitmap_local&& other) noexcept = default;
bitmap_local& operator=(const bitmap_local& other) = delete;
bitmap_local& operator=(const bitmap_local& other) noexcept = delete;
bitmap_local& operator=(bitmap_local&& other) = default;

~bitmap_local() noexcept = default;
Expand Down

0 comments on commit 965c8f3

Please sign in to comment.