diff --git a/tools/apps/hgjson/DlgOptJson.cpp b/tools/apps/hgjson/DlgOptJson.cpp index b86195d..0a923bb 100644 --- a/tools/apps/hgjson/DlgOptJson.cpp +++ b/tools/apps/hgjson/DlgOptJson.cpp @@ -2427,9 +2427,10 @@ void CDlgOptJson::OnBnClickedButtonModify() return; } - if (sop.type == L"bool" && sop.size <= sizeof(int)) + if (((sop.type == L"bool" || sop.type == L"int") && sop.size < sizeof(int)) + || (sop.type == L"float" && sop.size < sizeof(double))) { - MessageBox(TEXT("sizeof type 'boolean' at least 4!")); + MessageBox(TEXT("sizeof type 'boolean' and 'int' at least 4; 'double' at least 8!")); GotoDlgCtrl(GetDlgItem(IDC_EDIT_SIZE)); return; } diff --git a/tools/solution/Release/hgjson.exe b/tools/solution/Release/hgjson.exe index 443541f..d58c156 100644 Binary files a/tools/solution/Release/hgjson.exe and b/tools/solution/Release/hgjson.exe differ