File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 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)
293293 return true ;
294294
295295 // 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 ())
297298 {
298299 bool stop=false ;
299300
@@ -319,7 +320,8 @@ bool path_searcht::drop_state(const statet &state)
319320 }
320321
321322 // 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 ())
323325 {
324326 bool stop=false ;
325327
@@ -347,7 +349,7 @@ bool path_searcht::drop_state(const statet &state)
347349 }
348350
349351 // search time limit (--max-search-time)
350- if (time_limit>= 0 &&
352+ if (time_limit!=std::numeric_limits< unsigned >:: max () &&
351353 current_time ().get_t ()>start_time.get_t ()+time_limit*1000 )
352354 return true ;
353355
You can’t perform that action at this time.
0 commit comments