From 65ca57563290602b24ca294a705f432a180d8ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=A4rtner?= Date: Fri, 12 Jun 2020 18:57:53 +0200 Subject: [PATCH] Off-by-ones on data sizes in documentation (#57735) Fixes exponent off-by-ones in Painless documentation for int and long. --- docs/painless/painless-lang-spec/painless-types.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/painless/painless-lang-spec/painless-types.asciidoc b/docs/painless/painless-lang-spec/painless-types.asciidoc index 7588d6a273a..e58fec49d7c 100644 --- a/docs/painless/painless-lang-spec/painless-types.asciidoc +++ b/docs/painless/painless-lang-spec/painless-types.asciidoc @@ -46,13 +46,13 @@ The following primitive types are available: `int`:: 32-bit, signed, two's complement integer -* range: [`-2^32`, `2^32-1`] +* range: [`-2^31`, `2^31-1`] * default value: `0` * reference type: `Integer` `long`:: 64-bit, signed, two's complement integer -* range: [`-2^64`, `2^64-1`] +* range: [`-2^63`, `2^63-1`] * default value: `0` * reference type: `Long`