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
Olaf Meeuwissen 2015-09-28 20:36:16 +09:00
rodzic 5d92185ada
commit 5cae68b574
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;