diff options
author | jailletc36 <christophe.jaillet@wanadoo.fr> | 2012-10-07 12:32:00 +0200 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2012-10-08 13:22:40 +0530 |
commit | e55414dfc4899b67b8bec82885dde22ddb72faec (patch) | |
tree | 8c47c02a6d67e019ce3059a7e9ba445795160204 /desktop | |
parent | 1fb40dafbefccf906108efb19f28696cd03d6aed (diff) |
cppcheck: clarifyCalculation
Use () to clarify the order of the operator + minor formatting
Change-Id: I3dfa6566758d30bd76bed478089a0937ade24f89
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/win32/source/guistdio/guistdio.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/win32/source/guistdio/guistdio.inc b/desktop/win32/source/guistdio/guistdio.inc index 25586f0be214..0c2f09712f27 100644 --- a/desktop/win32/source/guistdio/guistdio.inc +++ b/desktop/win32/source/guistdio/guistdio.inc @@ -75,7 +75,7 @@ DWORD passOutputToConsole(HANDLE readPipe, HANDLE console) dwRead++; //We must make sure that only complete wchar_t|s are written. WriteConsolse takes //the number of wchar_t|s as argument. ReadFile, however, reads bytes. - bIncompleteWchar = dwRead % 2 ? true : false; + bIncompleteWchar = (dwRead % 2) ? true : false; if (bIncompleteWchar) { //To test this case, give aBuffer a small odd size, e.g. aBuffer[3] |