Skip to content

Change int to uint64_t in TaskManager for high number of periods #152

@Bondoki

Description

@Bondoki

Problem: the call of the run(int x) function in TaskManager has an overflow condition as the counter "nCircles" is an signed int.
If this value exceeds 2147483647 it's wrapped to negative number. As this is a barely seldom case in the most simulation, the TaskManager is only executed once.

Solution: Change all occurrence of "int" to "uint64_t".

void run(int nPeriods);

void TaskManager::run(int nPeriods)

int actualCircles=nCircles;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions