Skip to content
Snippets Groups Projects
Commit cbdad2f0 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed bug.

Rev: src/builtin_functions.c:1.78
parent b0bd6a30
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: builtin_functions.c,v 1.77 1998/03/02 16:06:58 hubbe Exp $"); RCSID("$Id: builtin_functions.c,v 1.78 1998/03/06 16:28:47 grubba Exp $");
#include "interpret.h" #include "interpret.h"
#include "svalue.h" #include "svalue.h"
#include "pike_macros.h" #include "pike_macros.h"
...@@ -2109,7 +2109,8 @@ void f_diff_longest_sequence(INT32 args) ...@@ -2109,7 +2109,8 @@ void f_diff_longest_sequence(INT32 args)
cmptbl=diff_compare_table(sp[-args].u.array,sp[1-args].u.array); cmptbl=diff_compare_table(sp[-args].u.array,sp[1-args].u.array);
push_array(cmptbl); push_array(cmptbl);
seq=diff_longest_sequence(cmptbl, sp[1-args].u.array->size); /* Note that the stack is one element off here. */
seq=diff_longest_sequence(cmptbl, sp[-args].u.array->size);
pop_n_elems(args+1); pop_n_elems(args+1);
push_array(seq); push_array(seq);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment