Fix compiler warning

This commit is contained in:
Jack Andersen 2017-10-16 19:50:59 -10:00
parent ed9b7914ee
commit 7eb2b19619
1 changed files with 4 additions and 4 deletions

View File

@ -91,16 +91,16 @@ class GenericPadCallback : public IGenericPadCallback
if (pageName)
{
if (usageName)
printf("%s %s %d\n", pageName, usageName, value);
printf("%s %s %d\n", pageName, usageName, int(value));
else
printf("%s %d %d\n", pageName, item.m_usage, value);
printf("%s %d %d\n", pageName, int(item.m_usage), int(value));
}
else
{
if (usageName)
printf("page%d %s %d\n", item.m_usagePage, usageName, value);
printf("page%d %s %d\n", int(item.m_usagePage), usageName, int(value));
else
printf("page%d %d %d\n", item.m_usagePage, item.m_usage, value);
printf("page%d %d %d\n", int(item.m_usagePage), int(item.m_usage), int(value));
}
}
};