diff --git a/ChangeLog b/ChangeLog index 3577425..dcd6a51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-03 Richard B. Kreckel + + * src/base/digitseq/cl_asm_i386_.cc (compare_loop_up, + compare_loop_down): Fix empty ranges. + 2007-10-12 Richard B. Kreckel Fix compilation on CYGWIN: diff --git a/src/base/digitseq/cl_asm_i386_.cc b/src/base/digitseq/cl_asm_i386_.cc index 24e0bb2..2d67b9e 100644 --- a/src/base/digitseq/cl_asm_i386_.cc +++ b/src/base/digitseq/cl_asm_i386_.cc @@ -536,6 +536,7 @@ C(compare_loop_up:) movl 4(%esp),%esi // %esi = xptr movl 8(%esp),%edi // %edi = yptr movl 12(%esp),%ecx // %ecx = count + cmp %ecx,%ecx // initialize flags for the case %ecx is 0 dir0start repz // Falls %ecx > 0: cmpsl // %ecx mal aufwärts (%edi) und (%esi) vergleichen @@ -1377,6 +1378,7 @@ C(compare_loop_down:) movl 12(%esp),%ecx // %ecx = count leal -4(%esi),%esi leal -4(%edi),%edi + cmp %ecx,%ecx // initialize flags for the case %ecx is 0 dir1start repz // Falls %ecx > 0: cmpsl // %ecx mal aufwärts (%edi) und (%esi) vergleichen