forpart of zero and fixed length

Max Alekseyev <[email protected]>
Newsgroups gmane.comp.mathematics.pari.user
Message-ID <CAJkPp5MdteeMcx4H5fBPVBK3ugdjsixYtODkkTR_J0CaLPyycw@mail.gmail.com>
Hello,

Similarly to

? forpart(p=1,print(p),[0,1],5)
Vecsmall([0, 0, 0, 0, 1])

I expect
? forpart(p=0,print(p),[0,1],5)
to produce
Vecsmall([0, 0, 0, 0, 0])
but it does not.

It looks like a bug to me.

Regards,
Max
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.