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

Fixed C++14 digit separators #1593

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Fixed C++14 digit separators #1593

merged 1 commit into from
Sep 6, 2023

Conversation

Robert42
Copy link
Contributor

Fixes #1592

Before the fix:
image

After the fix:
image

Testcode for reproduction:

test = {
  42, '1', A, 'x', A, '\x12', A, 0.1'2222, A, .1'222, A, 12'34, 0x01'2222, A,
};
ASSERT_EQ(_floor_log2_u32(0x4000'0000), 30);
ASSERT_EQ(_floor_log2_u32(0x4000'0001), 30);
ASSERT_EQ(_floor_log2_u32(0x8000'0000), 31);
ASSERT_EQ(_floor_log2_u32(0x8000'0001), 31);
ASSERT_EQ(_floor_log2_u32(0xffff'ffff), 31);

@Guldoman Guldoman merged commit 185b9cb into lite-xl:master Sep 6, 2023
takase1121 pushed a commit to takase1121/lite-xl that referenced this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fix language_cpp C++14 digit separators
2 participants