aboutsummaryrefslogtreecommitdiff
path: root/tools/tool.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-14 16:02:03 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-14 16:02:03 +0200
commitebe1ef1d2d63c245fb203878d8309f1808d75c42 (patch)
treefee584cd56d8ca82d7697cb45a6ca2a3e9792b61 /tools/tool.h
parent59b8f818c7d2e62933df41ede266b05687fd7ab1 (diff)
downloadnissy-core-ebe1ef1d2d63c245fb203878d8309f1808d75c42.tar.gz
nissy-core-ebe1ef1d2d63c245fb203878d8309f1808d75c42.zip
Fix gendata
Diffstat (limited to '')
-rw-r--r--tools/tool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/tool.h b/tools/tool.h
index 8fa726a..3488f34 100644
--- a/tools/tool.h
+++ b/tools/tool.h
@@ -91,7 +91,7 @@ generatetable(const char *solver, char **buf)
91 long long int size, gensize; 91 long long int size, gensize;
92 92
93 size = nissy_datasize(solver); 93 size = nissy_datasize(solver);
94 if (size == -1) { 94 if (size < 0) {
95 printf("Error getting table size.\n"); 95 printf("Error getting table size.\n");
96 return -1; 96 return -1;
97 } 97 }
@@ -101,7 +101,7 @@ generatetable(const char *solver, char **buf)
101 101
102 if (gensize != size) { 102 if (gensize != size) {
103 printf("Error generating table"); 103 printf("Error generating table");
104 if (gensize != -1) 104 if (gensize == NISSY_OK)
105 printf(" (got %lld bytes)", gensize); 105 printf(" (got %lld bytes)", gensize);
106 printf("\n"); 106 printf("\n");
107 return -2; 107 return -2;

Generated with cgit - Back to sebastiano.tronto.net