Skip to content

Commit 7605943

Browse files
authored
Merge pull request #4 from Willywes/analysis-KZwO2e
Apply fixes from StyleCI
2 parents abf7138 + c681c27 commit 7605943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AccessToken.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ public function build()
194194

195195
$sig = hash_hmac('sha256', implode(array_map('chr', $val)), $this->appCertificate, true);
196196

197-
$crc_channel_name = crc32($this->channelName) & 0xffffffff;
198-
$crc_uid = crc32($this->uid) & 0xffffffff;
197+
$crc_channel_name = crc32($this->channelName) & 0xFFFFFFFF;
198+
$crc_uid = crc32($this->uid) & 0xFFFFFFFF;
199199

200200
$content = array_merge(unpack('C*', packString($sig)), unpack('C*', pack('V', $crc_channel_name)), unpack('C*', pack('V', $crc_uid)), unpack('C*', pack('v', count($msg))), $msg);
201201
$version = '006';

0 commit comments

Comments
 (0)