[PD-dev] getting rid of warning (incompatible integer to pointer conversion )

IOhannes m zmoelnig zmoelnig at iem.at
Wed Feb 23 10:20:31 CET 2022


On 2/23/22 03:43, Alexandre Torres Porres wrote:
> Hi, I'm trying to get rid of all compilation warnings for my library but
> I'm stuck with this one. Is there a way to get rid of this or I'll just
> have to live with it?
> 
> 
> 
> *warning: **incompatible integer to pointer conversion initializing 't_int
> *' (aka 'long *')*
> 
> *      with an expression of type 'int' [-Wint-conversion]*
> 
>      t_int*nblock = sp[0]->s_n;
> 

that is just a bug in your code.
it should read:

```
int nblock = sp[0]->s_n;
```

mgfdasr
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20220223/bfcc287a/attachment.sig>


More information about the Pd-dev mailing list