mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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
|
// create an empty key placeholder
|
||||||
let empty: [u8; 0] = [];
|
let empty: [u8; 0] = [];
|
||||||
match basis_cache.key_update(&mut pddb_os,
|
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(_) => {},
|
Ok(_) => {},
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue