diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-06 00:09:51 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-06 00:09:51 +0000 |
commit | 344c00a85931c290ca66b1a46be487a4cc5daa09 (patch) | |
tree | cb4f1d1c085b2bd0a52b14bdf653e3cadb0938e4 | |
parent | 0b10edb3704cee398f1aa3c992ba773dfcc062b5 (diff) | |
download | php-openid-344c00a85931c290ca66b1a46be487a4cc5daa09.zip php-openid-344c00a85931c290ca66b1a46be487a4cc5daa09.tar.gz php-openid-344c00a85931c290ca66b1a46be487a4cc5daa09.tar.bz2 |
[project @ Change loop condition for longToBinary to use math library]
-rw-r--r-- | Net/OpenID/CryptUtil.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php index 6d2a193..b868985 100644 --- a/Net/OpenID/CryptUtil.php +++ b/Net/OpenID/CryptUtil.php @@ -161,7 +161,7 @@ class Net_OpenID_CryptUtil { $bytes = array(); - while ($long) { + while ($lib->cmp($long, 0) > 0) { array_unshift($bytes, $lib->mod($long, 256)); $long = $lib->div($long, pow(2, 8)); } |