Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate item detection issue #145

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Fix duplicate item detection issue #145

merged 1 commit into from
Nov 11, 2023

Conversation

ericlinsechs
Copy link
Contributor

Remove the 'is_this_dup' from qtest.c's delete duplicate implementation.

Previously, 'is_this_dup' was used to indicate if the current item in the old list was a duplicate of the previous item, while 'is_next_dup' indicated if the current item was a duplicate of the next item.

This led to comparisons always skipping when (is_next_dup || is_this_dup) was true, resulting in the item with duplicates not being compared with items in the new list.

The 'is_next_dup' is retained for accurate comparison.

Remove the 'is_this_dup' from qtest.c's delete duplicate implementation.

Previously, 'is_this_dup' was used to indicate if the current item in the old list was a duplicate of the previous item, while 'is_next_dup' indicated if the current item was a duplicate of the next item.

This led to comparisons always skipping when (is_next_dup || is_this_dup) was true, resulting in the item with duplicates not being compared with items in the new list.

The 'is_next_dup' is retained for accurate comparison.
@jserv jserv requested a review from eecheng87 November 8, 2023 04:03
@eecheng87 eecheng87 merged commit 8692fc1 into sysprog21:master Nov 11, 2023
1 of 2 checks passed
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.

2 participants