src/PhpSpreadsheet/Shared/OLERead.php 1 location
|
@@ 344-349 (lines=6) @@
|
341 |
|
// http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 |
342 |
|
// Changed by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems |
343 |
|
$_or_24 = ord($data[$pos + 3]); |
344 |
|
if ($_or_24 >= 128) { |
345 |
|
// negative number |
346 |
|
$_ord_24 = -abs((256 - $_or_24) << 24); |
347 |
|
} else { |
348 |
|
$_ord_24 = ($_or_24 & 127) << 24; |
349 |
|
} |
350 |
|
|
351 |
|
return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24; |
352 |
|
} |
src/PhpSpreadsheet/Reader/Xls.php 1 location
|
@@ 7912-7917 (lines=6) @@
|
7909 |
|
// http://sourceforge.net/tracker/index.php?func=detail&aid=1487372&group_id=99160&atid=623334 |
7910 |
|
// Changed by Andreas Rehm 2006 to ensure correct result of the <<24 block on 32 and 64bit systems |
7911 |
|
$_or_24 = ord($data[$pos + 3]); |
7912 |
|
if ($_or_24 >= 128) { |
7913 |
|
// negative number |
7914 |
|
$_ord_24 = -abs((256 - $_or_24) << 24); |
7915 |
|
} else { |
7916 |
|
$_ord_24 = ($_or_24 & 127) << 24; |
7917 |
|
} |
7918 |
|
|
7919 |
|
return ord($data[$pos]) | (ord($data[$pos + 1]) << 8) | (ord($data[$pos + 2]) << 16) | $_ord_24; |
7920 |
|
} |