Changeset 1197


Ignore:
Timestamp:
07/06/17 15:49:19 (4 years ago)
Author:
rlacroix
Message:

Fix: A floating-point exception could sometimes occur after r1190.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_client.cpp

    r1192 r1197  
    298298       ERROR("void CContextClient::setBufferSize(const std::map<int,StdSize>& mapSize, const std::map<int,StdSize>& maxEventSize)", 
    299299             << "The buffer sizes and the maximum events sizes are incoherent."); 
     300     else if (minBufferSizeEventSizeRatio == std::numeric_limits<double>::max()) 
     301       minBufferSizeEventSizeRatio = 1.0; // In this case, maxBufferedEvents will never be used but we want to avoid any floating point exception 
    300302 
    301303     maxBufferedEvents = size_t(2 * minBufferSizeEventSizeRatio) // there is room for two local buffers on the server 
Note: See TracChangeset for help on using the changeset viewer.