[kaffe] callMethodA / callMethodV problem?

Helmer Krämer hkraemer@freenet.de
Tue Feb 11 00:43:01 2003


This is a multi-part message in MIME format.

--Multipart_Tue__11_Feb_2003_09:44:20_+0100_094eff18
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

On Mon, 10 Feb 2003 20:33:29 +0100
Helmer Krämer <hkraemer@freenet.de> wrote:

Hi again,

replying to myself here.

> Does anybody have an idea about what could be going wrong
> here?

I've attached a small patch that seems to fix this and
hopefully doesn't break anything else (at least it passes
the regression tests on i386). The problem was caused by
callMethodA getting some array indices wrong when the called
method has some parameters of type long or double.

Greetings,
Helmer
--Multipart_Tue__11_Feb_2003_09:44:20_+0100_094eff18
Content-Type: application/octet-stream;
 name="param.patch"
Content-Disposition: attachment;
 filename="param.patch"
Content-Transfer-Encoding: base64

SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2thZmZlL2thZmZlL0No
YW5nZUxvZyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xMjUwCmRpZmYgLXUgLXAgLXIxLjEyNTAg
Q2hhbmdlTG9nCi0tLSBDaGFuZ2VMb2cJOCBGZWIgMjAwMyAxMjo1MDo1MiAtMDAwMAkxLjEyNTAK
KysrIENoYW5nZUxvZwkxMSBGZWIgMjAwMyAwODoyMjo1NiAtMDAwMApAQCAtMSwzICsxLDExIEBA
CisyMDAzLTAyLTEwICBIZWxtZXIgS3JhZW1lciAgPGhrcmFlbWVyQGZyZWVuZXQuZGU+CisKKwkq
IGthZmZlL2thZmZldm0vc3VwcG9ydC5jIChjYWxsTWV0aG9kQSk6IEZpeGVkIHBhc3Npbmcgb2Yg
bG9uZ3MgYW5kCisJZG91Ymxlcywgc21hbGwgY29kZSBjbGVhbiB1cAorCShjYWxsTWV0aG9kVik6
IENoYW5nZWQgUFJPTU9URV9UT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