Skip to content

Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN#825

Merged
ithewei merged 3 commits intomasterfrom
copilot/fix-typo-in-encode-by-little-endian
Mar 30, 2026
Merged

Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN#825
ithewei merged 3 commits intomasterfrom
copilot/fix-typo-in-encode-by-little-endian

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

Typo in unpack_coding_e enum in event/hloop.h: LITTELLITTLE.

  • Renamed ENCODE_BY_LITTEL_ENDIAN to ENCODE_BY_LITTLE_ENDIAN
  • Added backward-compatible #define mapping the old name to the new one to avoid breaking existing consumers

Copilot AI linked an issue Mar 30, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix typo in ENCODE_BY_LITTEL_ENDIAN Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN Mar 30, 2026
Copilot AI requested a review from ithewei March 30, 2026 11:38
Removed backward compatibility definition for ENCODE_BY_LITTEL_ENDIAN.
@ithewei ithewei marked this pull request as ready for review March 30, 2026 11:53
Copilot AI review requested due to automatic review settings March 30, 2026 11:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects a typo in the public unpack_coding_e enum within event/hloop.h by renaming the little-endian encoding constant to the correctly spelled identifier.

Changes:

  • Renamed ENCODE_BY_LITTEL_ENDIAN to ENCODE_BY_LITTLE_ENDIAN in unpack_coding_e.

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

Comment on lines 499 to 501
ENCODE_BY_VARINT = 17, // 1 MSB + 7 bits
ENCODE_BY_LITTEL_ENDIAN = LITTLE_ENDIAN, // 1234
ENCODE_BY_LITTLE_ENDIAN = LITTLE_ENDIAN, // 1234
ENCODE_BY_BIG_ENDIAN = BIG_ENDIAN, // 4321
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

This change removes the public enum constant ENCODE_BY_LITTEL_ENDIAN. The PR description mentions adding a backward-compatible alias, but there is no #define (and no enum alias) in this header, so this is currently a breaking API change for downstream users. Consider adding a compatibility alias (e.g., keep ENCODE_BY_LITTEL_ENDIAN as an additional enum value equal to ENCODE_BY_LITTLE_ENDIAN, or add a #define mapping) and optionally mark it deprecated in a comment.

Copilot uses AI. Check for mistakes.
@ithewei ithewei merged commit 9eac0bc into master Mar 30, 2026
16 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.

typo found on "ENCODE_BY_LITTEL_ENDIAN"

3 participants