mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* view.c (enqueue_change): Made the algorithm independent of the
memory layout (especially the order) of the fields in struct hexedit_change_node.
This commit is contained in:
parent
0453262b4b
commit
d2f7ec86c4
@ -23,7 +23,7 @@
|
||||
are otherwise unused.
|
||||
* view.c (enqueue_change): Made the algorithm independent of the
|
||||
memory layout (especially the order) of the fields in struct
|
||||
hexedit_change_node.
|
||||
hexedit_change_node. Rewrote it.
|
||||
|
||||
2005-04-14 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
@ -370,11 +370,8 @@ enqueue_change (struct hexedit_change_node **head,
|
||||
struct hexedit_change_node *curr = *head;
|
||||
|
||||
while (curr) {
|
||||
if (node->offset < curr->offset) {
|
||||
*head = node;
|
||||
node->next = curr;
|
||||
return;
|
||||
}
|
||||
if (node->offset < curr->offset)
|
||||
break;
|
||||
head = &(curr->next);
|
||||
curr = curr->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user