why not? sync
authorVolker Birk <vb@pep-project.org>
Sun, 14 Apr 2019 10:04:28 +0200
branchsync
changeset 3515287699a9aa7c
parent 3514 ff5d113bf2b3
child 3516 32b4b47e1fb7
why not?
sync/gen_actions.ysl2
     1.1 --- a/sync/gen_actions.ysl2	Sun Apr 14 09:59:45 2019 +0200
     1.2 +++ b/sync/gen_actions.ysl2	Sun Apr 14 10:04:28 2019 +0200
     1.3 @@ -50,14 +50,7 @@
     1.4                  if (t2->size > t1->size)
     1.5                      return false;
     1.6  
     1.7 -                for (int i=0; i<t1->size; i++) {
     1.8 -                    if (t1->buf[i] > t2->buf[i])
     1.9 -                        return true;
    1.10 -                    if (t2->buf[i] > t1->buf[i])
    1.11 -                        return false;
    1.12 -                }
    1.13 -
    1.14 -                return false;
    1.15 +                return memcmp(t1->buf, t2->buf, t1->size) > 0;
    1.16              }
    1.17  
    1.18              ||