aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-28 16:18:25 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-28 16:18:25 +0100
commit25483e9c3520ee6922af0682d0f01656a2a8f4a2 (patch)
treec57b8a01a098c1fe5b7b542c7a802eea9a8d874a
parenta20843dba2c9b19bb92a23a895c66aa1cc46b2a3 (diff)
downloadDns-25483e9c3520ee6922af0682d0f01656a2a8f4a2.zip
Dns-25483e9c3520ee6922af0682d0f01656a2a8f4a2.tar.gz
Dns-25483e9c3520ee6922af0682d0f01656a2a8f4a2.tar.bz2
Fix 2-bits type.
-rw-r--r--Dns.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dns.php b/Dns.php
index 02409d3..a924658 100644
--- a/Dns.php
+++ b/Dns.php
@@ -251,7 +251,8 @@ class Dns implements \Hoa\Core\Event\Listenable {
$i += 2;
$type = array_search(
- $_ = (int) (string) ord($handle[$i] + $handle[$i + 1]),
+ $_ = (int) (string) ord($handle[$i]) +
+ (int) (string) ord($handle[$i + 1]),
static::$_types
) ?: $_;