fix: correct bitwise operation in dconfig status tracking#472
Merged
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom May 8, 2025
Merged
fix: correct bitwise operation in dconfig status tracking#472deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
deepin-bot[bot] merged 1 commit intolinuxdeepin:masterfrom
Conversation
1. Fixed incorrect bitwise AND operation in property status tracking 2. Changed `fetchAndAndOrdered(1 << index)` to `fetchAndAndOrdered(~(1 << index))` 3. This ensures proper bit clearing when unsetting property flags 4. The change was made in both the generated header and the generator tool 5. Without this fix, status tracking would incorrectly set bits instead of clearing them fix: 修正 dconfig 状态跟踪中的位操作 1. 修复了属性状态跟踪中错误的位与操作 2. 将 `fetchAndAndOrdered(1 << index)` 改为 `fetchAndAndOrdered(~(1 << index))` 3. 确保在取消设置属性标志时能正确清除位 4. 修改同时应用于生成的头部文件和生成器工具 5. 若不修复此问题,状态跟踪会错误地设置位而非清除它们
deepin-ci-robot
added a commit
to linuxdeepin/dtk6core
that referenced
this pull request
May 8, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#472
Contributor
deepin pr auto review代码审查意见:
综上所述,代码的更改看起来是为了实现特定的逻辑,但是需要确保这一更改是经过充分测试的,并且符合项目的整体设计和需求。同时,代码的注释、风格和可读性也需要保持一致,以提高代码的可维护性。 |
zccrs
approved these changes
May 8, 2025
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, zccrs The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: blocked) |
18202781743
pushed a commit
to linuxdeepin/dtk6core
that referenced
this pull request
May 8, 2025
Synchronize source files from linuxdeepin/dtkcore. Source-pull-request: linuxdeepin/dtkcore#472
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fetchAndAndOrdered(1 << index)tofetchAndAndOrdered(~(1 << index))tool
of clearing them
fix: 修正 dconfig 状态跟踪中的位操作
fetchAndAndOrdered(1 << index)改为fetchAndAndOrdered(~(1 << index))