Re: [PATCH] libgccjit: Improve doc and comments regarding type casts

2020-09-09 Thread Andrea Corallo
Andrea Corallo writes: > Andrea Corallo writes: > >> Hi Alex, >> >> Looking at the code I believe all these casts are meant to be supported >> (read your intuition was correct). >> >> Also IMO source of confusion is that the doc is mentioning 'int' and >> 'float' but I believe would be better to

Re: [PATCH] libgccjit: Improve doc and comments regarding type casts

2020-08-06 Thread Andrea Corallo
Andrea Corallo writes: > Hi Alex, > > Looking at the code I believe all these casts are meant to be supported > (read your intuition was correct). > > Also IMO source of confusion is that the doc is mentioning 'int' and > 'float' but I believe would be better to have like 'integral' and > 'floati

[PATCH] libgccjit: Improve doc and comments regarding type casts (Was: Clarifying the permitted type conversions)

2020-07-22 Thread Andrea Corallo
Alex Coplan writes: > Secondly, I wanted to clarify the situation with respect to explicit > casts; that is, those conversions allowed by gcc_jit_context_new_cast(). > The docs [0] say: > > Currently only a limited set of conversions are possible: > - int <-> float > - int <-> bool > - P* <->