Skip to content

Commit 5833383

Browse files
change iteration types from uint to ulong
1 parent 65569cd commit 5833383

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Code/ContextSystem/Contexts/Control/Loops/ForeverLoopContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override Result VerifyCurrentState()
3434

3535
protected override IEnumerator<float> Execute()
3636
{
37-
uint iteration = 0;
37+
ulong iteration = 0;
3838
while (true)
3939
{
4040
SetVariable(++iteration);

Code/ContextSystem/Contexts/Control/Loops/RepeatLoopContext.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace SER.Code.ContextSystem.Contexts.Control.Loops;
1616
public class RepeatLoopContext : LoopContextWithSingleIterationVariable<NumberValue>, IKeywordContext, IAcceptOptionalVariableDefinitions
1717
{
1818
private readonly Result _rs = "Cannot create 'repeat' loop.";
19-
private Func<TryGet<uint>>? _repeatCountExpression = null;
20-
private uint? _repeatCount = null;
19+
private Func<TryGet<ulong>>? _repeatCountExpression = null;
20+
private ulong? _repeatCount = null;
2121

2222
public override Dictionary<IExtendableStatement.Signal, Func<IEnumerator<float>>> RegisteredSignals { get; } = [];
2323

@@ -94,7 +94,7 @@ protected override IEnumerator<float> Execute()
9494
_repeatCount = val;
9595
}
9696

97-
for (var i = 0; i < _repeatCount.Value; i++)
97+
for (ulong i = 0; i < _repeatCount.Value; i++)
9898
{
9999
SetVariable(i+1);
100100
var coro = RunChildren();

Code/ContextSystem/Contexts/Control/Loops/WhileLoopContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public override Result VerifyCurrentState()
5050

5151
protected override IEnumerator<float> Execute()
5252
{
53-
uint iteration = 0;
53+
ulong iteration = 0;
5454
while (GetExpressionResult())
5555
{
5656
SetVariable(++iteration);

0 commit comments

Comments
 (0)