summaryrefslogtreecommitdiffstats
path: root/ext/dl
diff options
context:
space:
mode:
authorttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-26 10:53:11 +0000
committerttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-11-26 10:53:11 +0000
commitb0ce071ec192e1e138a36a030f030bd21d4587f4 (patch)
tree2425b428f0e1750d4ef296980f6ed579a28e0f74 /ext/dl
parent43bb56a4a3f7852bd5dd240d22d68323f2310c24 (diff)
downloadruby-b0ce071ec192e1e138a36a030f030bd21d4587f4.tar.gz
ruby-b0ce071ec192e1e138a36a030f030bd21d4587f4.tar.xz
ruby-b0ce071ec192e1e138a36a030f030bd21d4587f4.zip
dlsizeof() should handle 'S' and 's'.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/dl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 5a492b577..c1e5311c0 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -208,8 +208,10 @@ dlsizeof(const char *cstr)
size += sizeof(short) * n;
break;
case 'P':
+ case 'S':
DLALIGN(0,size,VOIDP_ALIGN);
case 'p':
+ case 's':
size += sizeof(void*) * n;
break;
default: