aboutsummaryrefslogtreecommitdiff
path: root/src/pruning.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pruning.c')
-rw-r--r--src/pruning.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pruning.c b/src/pruning.c
index 6165e71..11705c5 100644
--- a/src/pruning.c
+++ b/src/pruning.c
@@ -338,8 +338,13 @@ ptableval(PruneData *pd, Cube cube)
338static int 338static int
339ptableval_index(PruneData *pd, uint64_t ind) 339ptableval_index(PruneData *pd, uint64_t ind)
340{ 340{
341 if (!pd->generated) 341 if (!pd->generated) {
342 fprintf(stderr, "Warning: request pruning table value"
343 " for uninitialized table %s.\n It's fine, but it"
344 " should not happen. Please report bug.\n",
345 pd->filename);
342 genptable(pd); 346 genptable(pd);
347 }
343 348
344 return (ind % 2) ? pd->ptable[ind/2] / 16 : pd->ptable[ind/2] % 16; 349 return (ind % 2) ? pd->ptable[ind/2] / 16 : pd->ptable[ind/2] % 16;
345} 350}

Generated with cgit - Back to sebastiano.tronto.net