Skip to content

Commit

Permalink
missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
jll63 committed Feb 2, 2024
1 parent 8442d5b commit 7c5a320
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions reference.in/vptr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ its static functions to allow it to initialize its data structures.
#endif
#include <yorel/yomm2/policy.hpp>


struct Number {};

struct Integer : Number {
Expand Down Expand Up @@ -122,12 +121,12 @@ class Page {
public:
Page() {
base = reinterpret_cast<char*>(
#ifdef _MSC_VER
#ifdef _MSC_VER
_aligned_malloc(page_size, page_size)
#else
#else
std::aligned_alloc(page_size, page_size)
#endif
);
#endif
);
*reinterpret_cast<std::uintptr_t**>(base) =
my_vptr_policy::static_vptr<T>;
void* first = base + sizeof(std::uintptr_t*);
Expand All @@ -137,11 +136,11 @@ class Page {
}

~Page() {
#ifdef _MSC_VER
#ifdef _MSC_VER
_aligned_free(base);
#else
free(base)
#endif
#else
free(base);
#endif
}

template<typename... U>
Expand Down

0 comments on commit 7c5a320

Please sign in to comment.