diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-29 15:51:21 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-08-29 15:51:21 +0200 |
| commit | b1fc4886520762dfac016cae612da959078ae67e (patch) | |
| tree | 8b81a302264cac9c1c0242d611cf02a9a675e0b3 /src/solvers/h48 | |
| parent | b5efa2c7bfa259f1b9f5afa68349e2742427de80 (diff) | |
| download | nissy-core-b1fc4886520762dfac016cae612da959078ae67e.tar.gz nissy-core-b1fc4886520762dfac016cae612da959078ae67e.zip | |
Small fix pre-test
Diffstat (limited to 'src/solvers/h48')
| -rw-r--r-- | src/solvers/h48/gendata_h48.h | 10 |
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 |
| 368 | gendata_h48k2_dfs(h48k2_dfs_arg_t *arg) | 368 | gendata_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) || |
