mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
fix: add _pad to IdleDeadline to avoid identity_map pointer aliasing
This commit is contained in:
@@ -20,6 +20,9 @@ const std = @import("std");
|
|||||||
|
|
||||||
const IdleDeadline = @This();
|
const IdleDeadline = @This();
|
||||||
|
|
||||||
|
// Padding to avoid zero-size struct, which causes identity_map pointer collisions.
|
||||||
|
_pad: bool = false,
|
||||||
|
|
||||||
pub fn init() IdleDeadline {
|
pub fn init() IdleDeadline {
|
||||||
return .{};
|
return .{};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user