Fixed: Use correct printf format specifier for unsigned integers

pull/599/head
Richard 2015-07-02 05:50:04 -06:00
parent 3af8014055
commit b6cf553ff5
1 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ int CDisplay::AddNodeToDisplayList(
iIndex += iDepth * 100;
}
else iIndex += iDepth * 10;
sprintf(chTemp,"Node %i",iIndex);
sprintf(chTemp,"Node %u",iIndex);
}
else {
sprintf(chTemp,"%s",pcNode->mName.data);
@ -222,7 +222,7 @@ int CDisplay::AddMeshToDisplayList(unsigned int iIndex, HTREEITEM hRoot)
char chTemp[MAXLEN];
if(0 == pcMesh->mName.length) {
sprintf(chTemp,"Mesh %i",iIndex);
sprintf(chTemp,"Mesh %u",iIndex);
}
else {
sprintf(chTemp,"%s",pcMesh->mName.data);
@ -1028,7 +1028,7 @@ int CDisplay::OnSetupTextureView(TextureInfo* pcNew)
sprintf(szTemp,"%i",(*pcNew->piTexture)->GetLevelCount());
SetWindowText(GetDlgItem(g_hDlg,IDC_ESHADER),szTemp);
sprintf(szTemp,"%i",pcNew->iUV);
sprintf(szTemp,"%u",pcNew->iUV);
SetWindowText(GetDlgItem(g_hDlg,IDC_EMAT),szTemp);
sprintf(szTemp,"%f",pcNew->fBlend);