From f2eb5014ac28a4237ae742658b6dfa215a058856 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 21 Apr 2019 23:50:42 +0200 Subject: [PATCH] Fix regression on 32 bits for strings. --- m-string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-string.h b/m-string.h index eb03bc99..d690dc62 100644 --- a/m-string.h +++ b/m-string.h @@ -898,14 +898,14 @@ string_strim(string_t v, const char charac[]) static inline bool string_oor_equal_p(const string_t s, unsigned char n) { - return (s->ptr == NULL) & (s->u.heap.size == ~(size_t)n); + return (s->ptr == NULL) & (s->u.heap.alloc == ~(size_t)n); } static inline void string_oor_set(string_t s, unsigned char n) { s->ptr = NULL; - s->u.heap.size = ~(size_t)n; + s->u.heap.alloc = ~(size_t)n; } /* I/O */