From d36ae568c186a9eee944ddf191b2c42088f0d59f Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Mon, 5 Sep 2016 16:55:57 +0200 Subject: [PATCH] jscript: Fix definition of JSSTR_MAX_LENGTH. Signed-off-by: Sebastian Lackner Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/jscript/jsstr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/jsstr.h b/dlls/jscript/jsstr.h index 48fa2be7e87..a14acc3e9d4 100644 --- a/dlls/jscript/jsstr.h +++ b/dlls/jscript/jsstr.h @@ -39,7 +39,7 @@ struct _jsstr_t { }; #define JSSTR_LENGTH_SHIFT 4 -#define JSSTR_MAX_LENGTH (1 << (32-JSSTR_LENGTH_SHIFT)) +#define JSSTR_MAX_LENGTH ((1 << (32-JSSTR_LENGTH_SHIFT))-1) #define JSSTR_FLAGS_MASK ((1 << JSSTR_LENGTH_SHIFT)-1) #define JSSTR_FLAG_LBIT 1