mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
don't truncate key allocations that have an alloc_hint specified
This commit is contained in:
parent
a1950a4c00
commit
ae37c2cd02
1 changed files with 3 additions and 1 deletions
|
|
@ -842,7 +842,9 @@ fn wrapped_main() -> ! {
|
|||
// create an empty key placeholder
|
||||
let empty: [u8; 0] = [];
|
||||
match basis_cache.key_update(&mut pddb_os,
|
||||
dict, key, &empty, None, alloc_hint, bname, true
|
||||
dict, key, &empty, None, alloc_hint, bname,
|
||||
// don't truncate if we've been given an explicit size hint.
|
||||
alloc_hint.is_none()
|
||||
) {
|
||||
Ok(_) => {},
|
||||
Err(e) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue