update align to avoid signed cast and clang warning#11
Conversation
This does change the compiled result for all of gcc, clang, msvc.
WalkthroughThe allocate function's alignment calculation in the memory allocator is modified. The previous bit-twiddling approach is replaced with an explicit power-of-two alignment formula Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This does change the compiled result for all of gcc, clang, msvc.
Summary by CodeRabbit