From: fennecdjay Date: Tue, 8 Oct 2019 12:56:53 +0000 (+0200) Subject: :art: Ptr coverage X-Git-Tag: nightly~2198^2~99 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=3eb42cf184e119d334b6e62233284fa5f660e4af;p=gwion.git :art: Ptr coverage --- diff --git a/src/lib/ptr.c b/src/lib/ptr.c index f6629c16..59a0d477 100644 --- a/src/lib/ptr.c +++ b/src/lib/ptr.c @@ -76,7 +76,7 @@ static OP_CHECK(opck_implicit_ptr) { static INSTR(instr_ptr_deref) { const M_Object o = *(M_Object*)REG(-SZ_INT); if(!*(m_bit**)o->data) - Except(shred, _("EmptyPointerExecption")); + Except(shred, _("EmptyPointerException")); if(instr->m_val2) memcpy(REG(-SZ_INT), o->data, SZ_INT); else { diff --git a/tests/error/empty_ptr.gw b/tests/error/empty_ptr.gw new file mode 100644 index 00000000..052bbb2d --- /dev/null +++ b/tests/error/empty_ptr.gw @@ -0,0 +1,3 @@ +#! [contains] EmptyPointerException +<~int~>Ptr t; +<<< *t >>>;