# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1649388249 14400 # Node ID 0d19cff70e937bd0c82dd12f0a9d14917133860d # Parent eb15d8595e8c0f39ec32399fa8550bef80ebee4a cast for type, make type a static variable diff -r eb15d8595e8c -r 0d19cff70e93 src/gui.c --- a/src/gui.c Thu Apr 07 19:46:17 2022 -0400 +++ b/src/gui.c Thu Apr 07 23:24:09 2022 -0400 @@ -33,8 +33,8 @@ #define SAVE_FILE_BUTTON 3 HWND hWndListBox, hWndComboBox; -int16_t version = 11; -enum type { +int16_t version = 13; +static enum type { vf, veg }; @@ -215,7 +215,7 @@ if (LOWORD(wParam) == COMBOBOX) version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); if (LOWORD(wParam) == LISTBOX) - type = SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); + type = (type)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); } switch(wParam) { case OPEN_FILE_BUTTON: