summaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-15 06:38:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-15 06:38:46 +0000
commit4b0298134794cf25eb8a4c3a94d376545ca02f3c (patch)
treeed340b138673ce7cdfbbec0ebe340a36fe1f48cd /pack.c
parent39ceaddfc9dbd85d51e4947867a91d23227a51e0 (diff)
downloadruby-4b0298134794cf25eb8a4c3a94d376545ca02f3c.tar.gz
ruby-4b0298134794cf25eb8a4c3a94d376545ca02f3c.tar.xz
ruby-4b0298134794cf25eb8a4c3a94d376545ca02f3c.zip
2000-05-15
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 757d841fc..028bedd01 100644
--- a/pack.c
+++ b/pack.c
@@ -1623,7 +1623,7 @@ pack_unpack(str, fmt)
case 'w':
{
unsigned long ul = 0;
- unsigned long ulmask = 0xfe << ((sizeof(unsigned long) - 1) * 8);
+ unsigned long ulmask = 0xfeL << ((sizeof(unsigned long) - 1) * 8);
while (len > 0 && s < send) {
ul <<= 7;