Skip to content
Snippets Groups Projects
Commit 2fdff794 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

Merge branch 'feature/qed/fix_listmap' into 'master'

[QED/listmap] Fix change function

See merge request frama-c/frama-c!4753
parents c58a930a a10f5935
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,10 @@ struct
| [] -> (match f k v None with None -> l | Some w -> l @ [k,w])
| ((k',v') as a)::next->
let c = K.compare k k' in
if c < 0 then l
if c < 0 then
match f k v None with
| None -> l
| Some w -> append_until a l ((k, w) :: next)
else if c = 0 then
match f k v (Some v') with
| None -> append_until a l next
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment