fix(concrete-compiler): reassociation maps are incorrect in crt mode

See #890.
This commit is contained in:
aPere3
2023-01-31 10:37:53 +01:00
committed by Alexandre Péré
parent c6a44e9091
commit 2fbcd1a792
3 changed files with 60 additions and 6 deletions

View File

@@ -18,8 +18,12 @@ namespace serverlib {
/// Helper class template that yields an unsigned integer type given a
/// size in bytes
template <std::size_t size> struct int_type_of_size {};
template <> struct int_type_of_size<4> { typedef uint32_t type; };
template <> struct int_type_of_size<8> { typedef uint64_t type; };
template <> struct int_type_of_size<4> {
typedef uint32_t type;
};
template <> struct int_type_of_size<8> {
typedef uint64_t type;
};
/// Converts one function pointer into another
// TODO: Not sure this is valid in all implementations / on all