mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +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.
|
are otherwise unused.
|
||||||
* view.c (enqueue_change): Made the algorithm independent of the
|
* view.c (enqueue_change): Made the algorithm independent of the
|
||||||
memory layout (especially the order) of the fields in struct
|
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>
|
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;
|
struct hexedit_change_node *curr = *head;
|
||||||
|
|
||||||
while (curr) {
|
while (curr) {
|
||||||
if (node->offset < curr->offset) {
|
if (node->offset < curr->offset)
|
||||||
*head = node;
|
break;
|
||||||
node->next = curr;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
head = &(curr->next);
|
head = &(curr->next);
|
||||||
curr = curr->next;
|
curr = curr->next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user