Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion issue int to int32 #3

Open
dzikiBOB opened this issue Aug 7, 2024 · 1 comment
Open

Conversion issue int to int32 #3

dzikiBOB opened this issue Aug 7, 2024 · 1 comment

Comments

@dzikiBOB
Copy link

dzikiBOB commented Aug 7, 2024

Did you find error about invalid conversion like below? What would it be?

error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]

C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino: In function 'void drawString(int, int, String, alignment)':
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:39: error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~~
| |
| int*
In file included from C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:5:
c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:361:72: note: initializing argument 3 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
361 | void get_text_bounds(const GFXfont font, const char string, int32_t x, int32_t y,
| ~~~~~~~~~^
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:44: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:361:84: note: initializing argument 4 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
361 | void get_text_bounds(const GFXfont font, const char string, int32_t x, int32_t y,
| ~~~~~~~~~^
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:49: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:362:31: note: initializing argument 5 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
362 | int32_t x1, int32_t y1, int32_t w, int32_t h,
| ~~~~~~~~~^~
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:54: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:362:44: note: initializing argument 6 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
362 | int32_t x1, int32_t y1, int32_t w, int32_t h,
| ~~~~~~~~~^~
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:59: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:362:57: note: initializing argument 7 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
362 | int32_t x1, int32_t y1, int32_t w, int32_t h,
| ~~~~~~~~~^
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1122:63: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1122 | get_text_bounds(&currentFont, data, &xx, &yy, &x1, &y1, &w, &h, NULL);
| ^~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:362:69: note: initializing argument 8 of 'void get_text_bounds(const GFXfont*, const char*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, int32_t*, const FontProperties*)'
362 | int32_t x1, int32_t y1, int32_t w, int32_t h,
| ~~~~~~~~~^
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1126:36: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1126 | write_string(&currentFont, data, &x, &cursor_y, framebuffer);
| ^~
| |
| int

c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:388:69: note: initializing argument 3 of 'void write_string(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
388 | void write_string(const GFXfont font, const char string, int32_t cursor_x,
| ~~~~~~~~~^~~~~~~~
C:\Users\Jessica\Documents\Arduino\OWM_EPD47_epaper_v2.5\OWM_EPD47_epaper_v2.5.ino:1126:40: error: invalid conversion from 'int
' to 'int32_t
' {aka 'long int
'} [-fpermissive]
1126 | write_string(&currentFont, data, &x, &cursor_y, framebuffer);
| ^~~~~~~~~
| |
| int*
c:\Users\Jessica\Documents\Arduino\libraries\LilyGo-EPD47\src/epd_driver.h:389:28: note: initializing argument 4 of 'void write_string(const GFXfont*, const char*, int32_t*, int32_t*, uint8_t*)'
389 | int32_t *cursor_y, uint8_t *framebuffer);
| ~~~~~~~~~^~~~~~~~

exit status 1

Compilation error: invalid conversion from 'int*' to 'int32_t*' {aka 'long int*'} [-fpermissive]

@AlloryDante
Copy link

I get same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants