From fe475cc0698780189b127e680be593dfafdcc059 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Mon, 11 Jan 2016 14:28:27 +1100 Subject: [PATCH] alignof() should operate on a type-id --- src/rose/rose_build_bytecode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rose/rose_build_bytecode.cpp b/src/rose/rose_build_bytecode.cpp index b0c251f4..5f654191 100644 --- a/src/rose/rose_build_bytecode.cpp +++ b/src/rose/rose_build_bytecode.cpp @@ -327,14 +327,14 @@ template static u32 add_to_engine_blob(build_context &bc, const T &a) { static_assert(is_pod::value, "should be pod"); - return add_to_engine_blob(bc, &a, sizeof(a), alignof(a)); + return add_to_engine_blob(bc, &a, sizeof(a), alignof(T)); } template static u32 add_to_engine_blob(build_context &bc, const T &a, const size_t len) { static_assert(is_pod::value, "should be pod"); - return add_to_engine_blob(bc, &a, len, alignof(a)); + return add_to_engine_blob(bc, &a, len, alignof(T)); } template