Projects
Multimedia
shorten
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 6
View file
shorten.patch
Changed
@@ -1,7 +1,7 @@ --- src/fixio.c | 9 +++++---- - utils/mkbshift.c | 4 ++-- - 2 files changed, 7 insertions(+), 6 deletions(-) + utils/mkbshift.c | 18 +++++++++--------- + 2 files changed, 14 insertions(+), 13 deletions(-) --- a/src/fixio.c +++ b/src/fixio.c @@ -38,7 +38,7 @@ for(i = 0; i < USIZE - 1; i++) fprintf(fout, "%d,", tabi); fprintf(fout, "%d};\n\n", tabUSIZE - 1); -@@ -79,7 +79,7 @@ +@@ -79,28 +79,28 @@ error_exit("identity maping failed for shift: %d\tindex: %d\n",shift,i); /* print out the ulaw_inward lookup table */ @@ -47,3 +47,31 @@ for(shift = 0; shift < SHIFTSIZE; shift++) { fprintf(fout, "{"); for(i = 0; i < USIZE - 1; i++) +- fprintf(fout, "%ld,", forwardmapshifti); ++ fprintf(fout, "%d,", forwardmapshifti); + if(shift != SHIFTSIZE - 1) +- fprintf(fout, "%ld},\n", forwardmapshiftUSIZE - 1); ++ fprintf(fout, "%d},\n", forwardmapshiftUSIZE - 1); + else +- fprintf(fout, "%ld}\n};\n", forwardmapshiftUSIZE - 1); ++ fprintf(fout, "%d}\n};\n", forwardmapshiftUSIZE - 1); + } + fprintf(fout, "\n"); + + /* print out the ulaw_outward lookup table */ +- fprintf(fout, "uchar ulaw_outward%d%d = {\n", SHIFTSIZE, USIZE); ++ fprintf(fout, "signed int ulaw_outward%d%d = {\n", SHIFTSIZE, USIZE); + for(shift = 0; shift < SHIFTSIZE; shift++) { + fprintf(fout, "{"); + for(i = 0; i < USIZE - 1; i++) +- fprintf(fout, "%ld,", reversemapshifti); ++ fprintf(fout, "%d,", reversemapshifti); + if(shift != SHIFTSIZE - 1) +- fprintf(fout, "%ld},\n", reversemapshiftUSIZE - 1); ++ fprintf(fout, "%d},\n", reversemapshiftUSIZE - 1); + else +- fprintf(fout, "%ld}\n};\n", reversemapshiftUSIZE - 1); ++ fprintf(fout, "%d}\n};\n", reversemapshiftUSIZE - 1); + } + + fclose(fout);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.