Skip to content

Fix loop condition in initialize_crc32_table#2

Open
BanYiMeng wants to merge 1 commit into
ArashPartow:masterfrom
BanYiMeng:patch-1
Open

Fix loop condition in initialize_crc32_table#2
BanYiMeng wants to merge 1 commit into
ArashPartow:masterfrom
BanYiMeng:patch-1

Conversation

@BanYiMeng

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 20, 2026 15:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the CRC32 lookup table initialization loop to cover the full 256-byte range (0–255), correcting an off-by-one gap in table generation.

Changes:

  • Expand CRC32 table initialization loop to include index 0xFF (255).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schifra_crc.hpp
void initialize_crc32_table()
{
for (std::size_t i = 0; i < 0xFF; ++i)
for (std::size_t i = 0; i <= 0xFF; ++i)
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