projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b36c9a5
)
new_body_type doesn't need to subtract the offset, that's what
author
Nicholas Clark
<nick@ccl4.org>
Sun, 5 Feb 2006 20:33:57 +0000
(20:33 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Sun, 5 Feb 2006 20:33:57 +0000
(20:33 +0000)
new_body_allocated is for.
p4raw-id: //depot/perl@27094
sv.c
patch
|
blob
|
history
diff --git
a/sv.c
b/sv.c
index
3f00951
..
36cea18
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-970,8
+970,7
@@
static const struct body_details bodies_by_type[] = {
};
#define new_body_type(sv_type) \
- (void *)((char *)S_new_body(aTHX_ bodies_by_type[sv_type].size, sv_type)\
- - bodies_by_type[sv_type].offset)
+ (void *)((char *)S_new_body(aTHX_ bodies_by_type[sv_type].size, sv_type))
#define del_body_type(p, sv_type) \
del_body(p, &PL_body_roots[sv_type])