achimdoebler / UGUI

µGUI - Open Source GUI module for embedded systems
Other
1.22k stars 420 forks source link

error "a cast operator is attempting to reduce the size of a pointer" #43

Open jeff012 opened 3 years ago

jeff012 commented 3 years ago

Hi, I am tring to built ugui to stm8l151and use STVD.but i got a error "a cast operator is attempting to reduce the size of a pointer", the error is at blow function:

UG_DriverRegister(DRIVER_DRAW_LINE,(void*)HW_DrawLine);

i don't know the root cause,can you help me?

image