diff options
Diffstat (limited to 'ace/TTY_IO.cpp')
-rw-r--r-- | ace/TTY_IO.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ace/TTY_IO.cpp b/ace/TTY_IO.cpp index 4aa76bbdc39..33809ff5ef2 100644 --- a/ace/TTY_IO.cpp +++ b/ace/TTY_IO.cpp @@ -361,12 +361,8 @@ ACE_TTY_IO::control (Control_Mode cmd, timeouts.ReadTotalTimeoutMultiplier = MAXDWORD; // ensure specified timeout is below MAXDWORD - - // We don't test arg->readtimeoutmsec against MAXDWORD - // directly to avoid a warning in the case DWORD is unsigned. - DWORD dw = arg->readtimeoutmsec; - if (dw < MAXDWORD) - timeouts.ReadTotalTimeoutConstant = dw; + if(arg->readtimeoutmsec < MAXDWORD) + timeouts.ReadTotalTimeoutConstant = arg->readtimeoutmsec ; else timeouts.ReadTotalTimeoutConstant = MAXDWORD; } |