KaeptnBalu/Arduino_Spot_Welder_V3

V3.3.3 Arduino Code - integer implicitly truncated to unsigned type

Closed this issue · 1 comments

I'm getting this error when compling code:

Arduino_Spot_Welder_V3_3_3.ino:1076:74: warning: large integer implicitly truncated to unsigned type [-Woverflow]
     setTextProp(1, (SSD1306_LCDWIDTH-(sizeof(LS_PULSEV)-1)*CHR_W*2)/2, 16);
                                                                          ^

This is the section of code:
image

I've not yet got a fix for it.

I've squashed the error in my repo here:
https://github.com/richard-scott/Arduino_Spot_Welder_V3
I'll create a PR.