少年修仙传客户端代码仓库
client_linchunjie
2018-08-14 c6689f941359227f0b99b20b9400ccbab81b671c
Utility/MathUtils.cs
@@ -187,13 +187,13 @@
                    }
                    longResult += (long)System.Math.Pow(64, i) * index;
                    if(longResult>int.MaxValue) {
                        DesignDebug.LogError("超出Int最大值,尝试转换为long类型");
                        DebugEx.LogError("超出Int最大值,尝试转换为long类型");
                        return 0;
                    }
                    result = (int)longResult;
                }
                catch {
                    DesignDebug.LogError("运算溢出");
                    DebugEx.LogError("运算溢出");
                    return 0;
                }
            }