-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Description
Description
my code line:
ImGui::InputInt( "Length", (int *)default_json["length"].get_ptr<json::number_integer_t *>());
error, imgui_widgets.cpp line 2173:
int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format)
{
// Signedness doesn't matter when pushing integer arguments
if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32)
return ImFormatString(buf, buf_size, format, (const ImU32)p_data);
Exception has occurred: Exception
Exception 0xc0000005 encountered at address 0x7ff749d422ee: Access violation reading location 0x00000000
Reproduction steps
my code line:
ImGui::InputInt( "Length", (int *)default_json["length"].get_ptr<json::number_integer_t *>());
Expected vs. actual results
int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format)
{
// Signedness doesn't matter when pushing integer arguments
if (data_type == ImGuiDataType_S32 || data_type == ImGuiDataType_U32)
return ImFormatString(buf, buf_size, format, (const ImU32)p_data);
Minimal code example
Error messages
Exception has occurred: Exception
Exception 0xc0000005 encountered at address 0x7ff749d422ee: Access violation reading location 0x00000000Compiler and operating system
clang , windows
Library version
3.12
Validation
- The bug also occurs if the latest version from the
developbranch is used. - I can successfully compile and run the unit tests.