aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/solvers/h48/gendata_h48.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/solvers/h48/gendata_h48.h b/src/solvers/h48/gendata_h48.h
index 2d222c9..c421c27 100644
--- a/src/solvers/h48/gendata_h48.h
+++ b/src/solvers/h48/gendata_h48.h
@@ -367,7 +367,7 @@ gendata_h48k2_return_size:
367_static void 367_static void
368gendata_h48k2_dfs(h48k2_dfs_arg_t *arg) 368gendata_h48k2_dfs(h48k2_dfs_arg_t *arg)
369{ 369{
370 uint8_t nmoves; 370 uint8_t nmoves, oldval, newval;
371 uint64_t val; 371 uint64_t val;
372 int64_t coord, fullcoord; 372 int64_t coord, fullcoord;
373 h48k2_dfs_arg_t nextarg; 373 h48k2_dfs_arg_t nextarg;
@@ -378,9 +378,11 @@ gendata_h48k2_dfs(h48k2_dfs_arg_t *arg)
378 378
379 val = h48map_value(arg->shortcubes, fullcoord); 379 val = h48map_value(arg->shortcubes, fullcoord);
380 380
381 if (arg->depth >= arg->base && arg->depth <= arg->base + 2) 381 if (arg->depth >= arg->base && arg->depth <= arg->base + 2) {
382 set_esep_pval( 382 oldval = get_esep_pval(arg->h48data, coord, arg->k);
383 arg->h48data, coord, arg->k, arg->depth - arg->base); 383 newval = _min(oldval, arg->depth - arg->base);
384 set_esep_pval(arg->h48data, coord, arg->k, newval);
385 }
384 386
385 if ((val < arg->shortdepth) || 387 if ((val < arg->shortdepth) ||
386 (arg->depth > arg->shortdepth && val != MAP_UNSET) || 388 (arg->depth > arg->shortdepth && val != MAP_UNSET) ||

Generated with cgit - Back to sebastiano.tronto.net