Skip to content

Commit 96223ab

Browse files
committed
修改
1 parent b70455f commit 96223ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

csharp/ToolGood.Algorithm2/AlgorithmEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ public long TryEvaluate(string exp, long def)
510510
LastError = obj.ErrorMsg;
511511
return def;
512512
}
513-
return obj.IntValue;
513+
return obj.LongValue;
514514
}
515515
} catch (Exception ex) {
516516
LastError = ex.Message + "\r\n" + ex.StackTrace;

csharp/ToolGood.Algorithm2/AlgorithmEngineEx.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public ulong TryEvaluateCategory(string categoryName, ulong def)
521521
LastError = obj.ErrorMsg;
522522
return def;
523523
}
524-
return (ulong)obj.IntValue;
524+
return (ulong)obj.LongValue;
525525
} catch (Exception ex) {
526526
LastError = ex.Message + "\r\n" + ex.StackTrace;
527527
}
@@ -584,7 +584,7 @@ public long TryEvaluateCategory(string categoryName, long def)
584584
LastError = obj.ErrorMsg;
585585
return def;
586586
}
587-
return obj.IntValue;
587+
return obj.LongValue;
588588
} catch (Exception ex) {
589589
LastError = ex.Message + "\r\n" + ex.StackTrace;
590590
}
@@ -822,7 +822,7 @@ public ulong TryEvaluate(string exp, ulong def)
822822
LastError = obj.ErrorMsg;
823823
return def;
824824
}
825-
return (ulong)obj.IntValue;
825+
return (ulong)obj.LongValue;
826826
} catch (Exception ex) {
827827
LastError = ex.Message + "\r\n" + ex.StackTrace;
828828
}
@@ -885,7 +885,7 @@ public long TryEvaluate(string exp, long def)
885885
LastError = obj.ErrorMsg;
886886
return def;
887887
}
888-
return obj.IntValue;
888+
return obj.LongValue;
889889
} catch (Exception ex) {
890890
LastError = ex.Message + "\r\n" + ex.StackTrace;
891891
}

0 commit comments

Comments
 (0)