From 91d7ed72f502850a0cf63ae66d1f5a495a5ac957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 7 Jan 2020 10:22:33 +0100 Subject: [PATCH] Set other value to max bit shifts 1 << 31 --- static/js/data.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/data.js b/static/js/data.js index 42c63bd6..1badc7b7 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -5,7 +5,8 @@ class excitationTypes { static get nPis() { return new excitationType(1 << 3, String.raw`n \rightarrow \pi^\star`) } static get Single() { return new excitationType(1 << 4, "S") } static get Double() { return new excitationType(1 << 5, "D") } - static get Others() { return new excitationType(1 << 6, String.raw`\mathrm{Others}`) } + // Max bit shifts is 31 because int are int32 So 1 << 31 are -2147483648 + static get Others() { return new excitationType(1 << 31, String.raw`\mathrm{Others}`) } static get All() { var lst = [] for (const prop of Object.getOwnPropertyNames(excitationTypes)) {