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:
parent
e052fa4e4a
commit
009032c95c
@ -1324,7 +1324,7 @@ class BPlusTree_Node {
|
||||
$x = 'Cflag/Cvalidkeys/';
|
||||
$n = $this->size+1;
|
||||
for ($i = 0; $i<$n; $i++) {
|
||||
$x .= "Lindices{$i}/";
|
||||
$x .= "lindices{$i}/";
|
||||
}
|
||||
$arr = unpack($x, $s);
|
||||
|
||||
@ -1426,7 +1426,7 @@ class BPlusTree_Node {
|
||||
}
|
||||
$is_o=true;
|
||||
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);}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user