From d008494215570cefb8841fbb5d5d11a41de22b4f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 22 Aug 2017 23:30:20 +0200 Subject: [PATCH] Move from 32 bits alignement constraint to 64 bits alignement constraint. --- m-string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-string.h b/m-string.h index 172f4f91..476b7f39 100644 --- a/m-string.h +++ b/m-string.h @@ -863,7 +863,7 @@ string_in_str(string_t v, FILE *f) #ifndef __cplusplus # define STRING_CTE(s) \ ((const string_t){{.size = sizeof(s)-1, .alloc = sizeof(s), \ - .ptr = ((struct { int _n; char _d[sizeof (s)]; }){ 0, s })._d }}) + .ptr = ((struct { long long _n; char _d[sizeof (s)]; }){ 0, s })._d }}) #else namespace m_string { template @@ -871,7 +871,7 @@ namespace m_string { string_t string; union { char str[N]; - int i; + long long i; }; inline m_aligned_string(const char lstr[]) {