少年修仙传客户端代码仓库
client_linchunjie
2018-08-27 d106f11e7f44c748f595da36e0cdfd54849649e6
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;
                }
            }