poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Assertion failure in pkl_ast_make_integral_type


From: Jose E. Marchesi
Subject: Re: Assertion failure in pkl_ast_make_integral_type
Date: Thu, 28 Nov 2019 11:33:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi John.

    This code:
    
    defun foo = (offset<byte[],byte> input, int len) int:
    {
        defvar ret = 0;
        return ret;
    }
    
    
    foo (0x10#B, 0);
    
    Causes poke to assert with:
    
    poke/src/pkl-ast.c:339: pkl_ast_make_integral_type: Assertion
    `signed_p == 0 || signed_p == 1' failed.
    Aborted

That's because the base type in an offset type should be integral.  I
just pushed a compiler check to assure that, along with a couple of test
cases.

Thanks for the report!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]