// MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
// MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm.
// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm.
grab_sz=ImMin(ImMax(1.0f*(slider_sz/((v_min<v_max?v_max-v_min:v_min-v_max)+1.0f)),style.GrabMinSize),slider_sz);// Integer sliders, if possible have the grab size represent 1 unit
grab_sz=ImMin(ImMax(1.0f*(slider_sz/((v_min<v_max?v_max-v_min:v_min-v_max)+1.0f)),style.GrabMinSize),slider_sz);// Integer sliders, if possible have the grab size represent 1 unit