chiark / gitweb /
src/builtin.lisp (class-slot "init"): Fix declaration of temporaries.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 16 Dec 2015 01:24:16 +0000 (01:24 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 May 2016 13:40:40 +0000 (14:40 +0100)
commitf6eafb24c6798b8c68fa00b08814ddf57a0f630c
treedd75a26199dd3d3dd72b767352e8d4d71a20d204
parentb4aab8d4d82563222e22d59e7ba46e3dd5d82332
src/builtin.lisp (class-slot "init"): Fix declaration of temporaries.

Each slot initializer is first used to initialize a temporary of the
correct type, which is then assigned to the slot's structure
member.  (This was introduced in commit 1d8206e.)  Unfortunately, the
temporary was declared naïvely, as `TYPE NAME', which works when TYPE
involves only declaration specifiers and pointer declarator operators,
but not otherwise.

Fix this, by using the `pprint-c-type' function like it was meant to be.
src/builtin.lisp