Commit 4da6e5a
authored
avoiding overflow warning for 32/64 bit system (#370)
# Description
Building for 32-bit is giving this error:
`cannot use roomIdMin64 (untyped int constant 1000000000000) as int value in assignment (overflows)`
Even though there is runtime detection for the integer bitsize, we still need to trick the compiler.
This sets it to the 32 bit value and then multiplies it by 1000 if the maxint is over this number.
## Changes
- Changed the way we check for which minimum ephemeral RoomId value to use.1 parent 62fd1f5 commit 4da6e5a
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 225 | + | |
| 226 | + | |
231 | 227 | | |
232 | 228 | | |
0 commit comments