Re: New Defects reported by Coverity Scan for Pike-master

2015-09-07 Thread Chris Angelico
On Tue, Sep 8, 2015 at 12:28 AM, wrote: > 1614 case TWO(STRING_ALLOC_SUBSTRING,1): > 1615 Pike_fatal("This should not happen, substrings are never > unlinked.\n"); CID 1323178: Control flow issues (MISSING_BREAK) The above case falls

Re: New Defects reported by Coverity Scan for Pike-master

2015-09-07 Thread Peter Bortas
It is. I haven't been able make Coverity to take the correct action with that information. /Peter Bortas On 7 Sep 2015 16:31, "Chris Angelico" wrote: > On Tue, Sep 8, 2015 at 12:28 AM, wrote: > > 1614 case TWO(STRING_ALLOC_SUBSTRING,1): > >

The type of %

2015-09-07 Thread Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
So I thought I would fix that Gmp.mpz(3)%2 has the type mixed. My first quick and dirty fix was to update the type of `% a bit by adding tFunc(tObjIs_GMP_MPZ tInt, tObjIs_GMP_MPZ) Yes, it ignores the int%mpz and mpz%mpz permutations, but it's a start. Not the right one apparently, as I got the