File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,8 @@ bool path_searcht::drop_state(const statet &state)
293
293
return true ;
294
294
295
295
// unwinding limit -- loops
296
- if (unwind_limit>=0 && pc->is_backwards_goto ())
296
+ if (unwind_limit!=std::numeric_limits<unsigned >::max () &&
297
+ pc->is_backwards_goto ())
297
298
{
298
299
bool stop=false ;
299
300
@@ -319,7 +320,8 @@ bool path_searcht::drop_state(const statet &state)
319
320
}
320
321
321
322
// unwinding limit -- recursion
322
- if (unwind_limit>=0 && pc->is_function_call ())
323
+ if (unwind_limit!=std::numeric_limits<unsigned >::max () &&
324
+ pc->is_function_call ())
323
325
{
324
326
bool stop=false ;
325
327
@@ -347,7 +349,7 @@ bool path_searcht::drop_state(const statet &state)
347
349
}
348
350
349
351
// search time limit (--max-search-time)
350
- if (time_limit>= 0 &&
352
+ if (time_limit!=std::numeric_limits< unsigned >:: max () &&
351
353
current_time ().get_t ()>start_time.get_t ()+time_limit*1000 )
352
354
return true ;
353
355
You can’t perform that action at this time.
0 commit comments