@@ 576-580 (lines=5) @@ | ||
573 | $buf = fread($gi->filehandle, 2 * $gi->record_length); |
|
574 | } |
|
575 | $x = array(0,0); |
|
576 | for ($i = 0; $i < 2; ++$i) { |
|
577 | for ($j = 0; $j < $gi->record_length; ++$j) { |
|
578 | $x[$i] += ord($buf[$gi->record_length * $i + $j]) << ($j * 8); |
|
579 | } |
|
580 | } |
|
581 | ||
582 | $bnum = 127 - $depth; |
|
583 | $idx = $bnum >> 3; |
|
@@ 627-631 (lines=5) @@ | ||
624 | $buf = fread($gi->filehandle, 2 * $gi->record_length); |
|
625 | } |
|
626 | $x = array(0,0); |
|
627 | for ($i = 0; $i < 2; ++$i) { |
|
628 | for ($j = 0; $j < $gi->record_length; ++$j) { |
|
629 | $x[$i] += ord($buf[$gi->record_length * $i + $j]) << ($j * 8); |
|
630 | } |
|
631 | } |
|
632 | if ($ipnum & (1 << $depth)) { |
|
633 | if ($x[1] >= $gi->databaseSegments) { |
|
634 | return $x[1]; |