Skip to content

Commit

Permalink
Off-by-ones on data sizes in documentation (#57735)
Browse files Browse the repository at this point in the history
Fixes exponent off-by-ones in Painless documentation for int and long.
  • Loading branch information
m9aertner authored and jdconrad committed Jun 12, 2020
1 parent d7222fe commit af23c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/painless/painless-lang-spec/painless-types.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit af23c38

Please sign in to comment.