Skip to content

Removes undefined behavior (GCC 6.2.1 warning).#1

Open
ShadenSmith wants to merge 1 commit intostream-benchmarking:masterfrom
ShadenSmith:undefined_behavior
Open

Removes undefined behavior (GCC 6.2.1 warning).#1
ShadenSmith wants to merge 1 commit intostream-benchmarking:masterfrom
ShadenSmith:undefined_behavior

Conversation

@ShadenSmith
Copy link

The generate_cnt_distribution function in two of the generators executes a loop over the inclusive range 0:MAX_DISTRO. The cnt_dist array is written to and should therefore be of size MAX_DISTRO+1.

GCC 6.2.1 gives me an undefined behavior warning for this in active.c:195.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant