Commit e1e35c43 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2005-10-07 19:09:27 by afrisch] Bug in record concat

Original author: afrisch
Date: 2005-10-07 19:09:27+00:00
parent 4e0fe3d8
...@@ -125,6 +125,7 @@ let merge (t1 : 'a t) (t2 : 'a t) = ...@@ -125,6 +125,7 @@ let merge (t1 : 'a t) (t2 : 'a t) =
set t (succ i) (get t1 (pred i1)); set t (succ i) (get t1 (pred i1));
let i = i + 2 in let i = i + 2 in
if (i1 = n1) then ( if (i1 = n1) then (
let i2 = i2 - 2 in
let l = n2 - i2 in let l = n2 - i2 in
Array.blit t2 i2 t i l; Array.blit t2 i2 t i l;
i + l i + l
...@@ -137,6 +138,7 @@ let merge (t1 : 'a t) (t2 : 'a t) = ...@@ -137,6 +138,7 @@ let merge (t1 : 'a t) (t2 : 'a t) =
set t (succ i) (get t2 (pred i2)); set t (succ i) (get t2 (pred i2));
let i = i + 2 in let i = i + 2 in
if (i2 = n2) then ( if (i2 = n2) then (
let i1 = i1 - 2 in
let l = n1 - i1 in let l = n1 - i1 in
Array.blit t1 i1 t i l; Array.blit t1 i1 t i l;
i + l i + l
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment