TERRIBLE bug to appear right before the discussion of my thesis, but in fact quite trivial: a long were read as unsigned, while in fact it was signed

This commit is contained in:
real_nowhereman 2008-12-07 14:04:58 +00:00
parent e052fa4e4a
commit 009032c95c

View File

@ -1324,7 +1324,7 @@ class BPlusTree_Node {
$x = 'Cflag/Cvalidkeys/'; $x = 'Cflag/Cvalidkeys/';
$n = $this->size+1; $n = $this->size+1;
for ($i = 0; $i<$n; $i++) { for ($i = 0; $i<$n; $i++) {
$x .= "Lindices{$i}/"; $x .= "lindices{$i}/";
} }
$arr = unpack($x, $s); $arr = unpack($x, $s);
@ -1426,7 +1426,7 @@ class BPlusTree_Node {
} }
$is_o=true; $is_o=true;
while((list(,$v)=each($ff)) && $is_o=is_object($v)); while((list(,$v)=each($ff)) && $is_o=is_object($v));
if (!$is_o) {d("CAPUTT");f();} if (!$is_o) trigger_error('ERR', E_USER_ERROR);}
} }
/** /**