mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
fix overflow check in subspace storage
Previous and new value: 0x7ffffff -- old 134.217.727 0x7fffffff -- new 2.147.483.647
This commit is contained in:
1 parent
112cad8a49
commit
fcfad08260
1 file changed
+2
-2
@@ -77,8 +77,8 @@ class InstancePlugin extends plugin.BaseInstancePlugin {
|
||||
// XXX this should be done on the lua side
|
||||
// Ensure counts don't overflow
|
||||
for (let item of items) {
|
||||
if (item[1] > 0x7ffffff) {
|
||||
item[1] = 0x7ffffff;
|
||||
if (item[1] > 0x7fffffff) {
|
||||
item[1] = 0x7fffffff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user