Mercurial > dwindows
comparison win/dw.c @ 2059:c1afe013b07c
Win: Ming-W64 8.1 gcc complains that members are unsigned int.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 03 Jan 2020 23:01:26 +0000 |
parents | f8865a4b5835 |
children | ade83a05a7d8 |
comparison
equal
deleted
inserted
replaced
2058:f8865a4b5835 | 2059:c1afe013b07c |
---|---|
1142 /* Free the data associated with the ID */ | 1142 /* Free the data associated with the ID */ |
1143 if(mii.wID >= 30000) | 1143 if(mii.wID >= 30000) |
1144 { | 1144 { |
1145 char buffer[31] = {0}; | 1145 char buffer[31] = {0}; |
1146 | 1146 |
1147 _snprintf(buffer, 30, "_dw_id%ld", mii.wID); | 1147 _snprintf(buffer, 30, "_dw_id%u", mii.wID); |
1148 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); | 1148 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); |
1149 _snprintf(buffer, 30, "_dw_checkable%ld", mii.wID); | 1149 _snprintf(buffer, 30, "_dw_checkable%u", mii.wID); |
1150 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); | 1150 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); |
1151 _snprintf(buffer, 30, "_dw_ischecked%ld", mii.wID); | 1151 _snprintf(buffer, 30, "_dw_ischecked%u", mii.wID); |
1152 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); | 1152 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); |
1153 _snprintf(buffer, 30, "_dw_isdisabled%ld", mii.wID); | 1153 _snprintf(buffer, 30, "_dw_isdisabled%u", mii.wID); |
1154 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); | 1154 dw_window_set_data( DW_HWND_OBJECT, buffer, NULL ); |
1155 } | 1155 } |
1156 | 1156 |
1157 /* Check any submenus */ | 1157 /* Check any submenus */ |
1158 if( mii.hSubMenu ) | 1158 if( mii.hSubMenu ) |