History

Ensure a C++ object exists for all static const members of structs or create constexpr functions. - This is an attempt to adhere to the letter of the C++ specification.

arr committed 9 years ago

Commit af5c7a91 parent 4d839d714 files · +86 −64Browse files

Showing the changes to src/vm/stack.cpp (1 of 14 files). Show all

Unified · Split

src/vm/stack.cpp+2−2
@@ -161,7 +161,7 @@ vm_module_ref_t *&vm_frame_t::prev_module_ref() const · 160 unmodified lines
161161
162162 pointer_t vm_frame_t::fixed_point_register_1() const
163163 {
164− const auto offset = vm_frame_constants::fixed_point_register_1_offset;
164+ const auto offset = vm_frame_constants::fixed_point_register_1_offset();
165165 assert(offset < frame_type->size_in_bytes);
166166
167167 auto p = reinterpret_cast<uint8_t *>(base()) + offset;
@@ -170,7 +170,7 @@ pointer_t vm_frame_t::fixed_point_register_1() const · 2 unmodified lines
170170
171171 pointer_t vm_frame_t::fixed_point_register_2() const
172172 {
173− const auto offset = vm_frame_constants::fixed_point_register_2_offset;
173+ const auto offset = vm_frame_constants::fixed_point_register_2_offset();
174174 assert(offset < frame_type->size_in_bytes);
175175
176176 auto p = reinterpret_cast<uint8_t *>(base()) + offset;