Seems hex printf output is buggy with negative value, -1 should give ff and not ffffffff. we go to decimal
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8751 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -818,7 +818,7 @@ Keymap::SaveAsHeader(entry_ref &ref)
|
||||
|
||||
fprintf(f, "const char sSystemKeyChars[] = {\n");
|
||||
for (uint32 i=0; i<fCharsSize; i++)
|
||||
fprintf(f, "\t0x%hx,\n", fChars[i]);
|
||||
fprintf(f, "\t%hhd,\n", fChars[i]);
|
||||
fprintf(f, "};\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user