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:
parent
12379c683f
commit
5b7cb6de0a
|
@ -818,7 +818,7 @@ Keymap::SaveAsHeader(entry_ref &ref)
|
||||||
|
|
||||||
fprintf(f, "const char sSystemKeyChars[] = {\n");
|
fprintf(f, "const char sSystemKeyChars[] = {\n");
|
||||||
for (uint32 i=0; i<fCharsSize; i++)
|
for (uint32 i=0; i<fCharsSize; i++)
|
||||||
fprintf(f, "\t0x%hx,\n", fChars[i]);
|
fprintf(f, "\t%hhd,\n", fChars[i]);
|
||||||
fprintf(f, "};\n");
|
fprintf(f, "};\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue