mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
make Dict.empty C ABI safe
This commit is contained in:
parent
e07057388b
commit
e99237e302
1 changed files with 2 additions and 2 deletions
|
@ -386,8 +386,8 @@ pub const RocDict = extern struct {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Dict.empty
|
// Dict.empty
|
||||||
pub fn dictEmpty() callconv(.C) RocDict {
|
pub fn dictEmpty(dict: *RocDict) callconv(.C) void {
|
||||||
return RocDict.empty();
|
dict.* = RocDict.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn slotSize(key_size: usize, value_size: usize) usize {
|
pub fn slotSize(key_size: usize, value_size: usize) usize {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue