kopia lustrzana https://gitlab.com/sane-project/backends
Make sequence-point warning go away
Sample code that mimicks the offending code gave different run-time results when compiled with gcc-4.9.2 and clang-3.5.0. Rewriting the sample code so that results matched gcc-4.9.2 for both compilers was used to determine how to "fix" the offending statement.merge-requests/1/head
rodzic
5d92185ada
commit
5cae68b574
|
|
@ -478,7 +478,7 @@ sanei_ir_to_8bit (SANE_Parameters * params, const SANE_Uint *in_img,
|
|||
memmove (outi, in_img, ssize * sizeof(SANE_Uint));
|
||||
is = params->depth - 8;
|
||||
for (i = ssize; i > 0; i--) {
|
||||
*outi++ = *outi++ >> is;
|
||||
*outi = *outi >> is, outi += 2;
|
||||
}
|
||||
|
||||
*out_img = outi;
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue