Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit ef15f15

Browse files
committed
x64: fix size of exception object pointer
1 parent 85ede16 commit ef15f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ldc/eh/win32.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ImgPtr!CatchableType getCatchableType(TypeInfo_Class ti)
177177
ptd.name.ptr[ti.name.length + 1] = 0;
178178

179179
auto ct = eh_malloc!CatchableType();
180-
ct.toPointer[0] = CatchableType(CT_IsSimpleType, td, PMD(0, -1, 0), 4, PMFN());
180+
ct.toPointer[0] = CatchableType(CT_IsSimpleType, td, PMD(0, -1, 0), size_t.sizeof, PMFN());
181181
catchableHashtab[ti] = ct;
182182
return ct;
183183
}

0 commit comments

Comments
 (0)