10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Set other value to max bit shifts 1 << 31

This commit is contained in:
Mickaël Véril 2020-01-07 10:22:33 +01:00
parent 387981c6a8
commit 91d7ed72f5

View File

@ -5,7 +5,8 @@ class excitationTypes {
static get nPis() { return new excitationType(1 << 3, String.raw`n \rightarrow \pi^\star`) } 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 Single() { return new excitationType(1 << 4, "S") }
static get Double() { return new excitationType(1 << 5, "D") } 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() { static get All() {
var lst = [] var lst = []
for (const prop of Object.getOwnPropertyNames(excitationTypes)) { for (const prop of Object.getOwnPropertyNames(excitationTypes)) {