aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48/gendata_h48.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-11 19:48:57 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-11 19:48:57 +0200
commit10b65003102675bd19c0e5174ff249be2a163bc7 (patch)
tree10388535f1395f084a1a0456094f90cc2390fc62 /src/solvers/h48/gendata_h48.h
parente6ff0ce6926fa921a13055c9c35d8e60b691e776 (diff)
downloadnissy-core-10b65003102675bd19c0e5174ff249be2a163bc7.tar.gz
nissy-core-10b65003102675bd19c0e5174ff249be2a163bc7.zip
Simplified solver
Diffstat (limited to 'src/solvers/h48/gendata_h48.h')
-rw-r--r--src/solvers/h48/gendata_h48.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/solvers/h48/gendata_h48.h b/src/solvers/h48/gendata_h48.h
index f276eca..066c650 100644
--- a/src/solvers/h48/gendata_h48.h
+++ b/src/solvers/h48/gendata_h48.h
@@ -152,13 +152,14 @@ gendata_h48(gendata_h48_arg_t *arg)
152 goto gendata_h48_error; 152 goto gendata_h48_error;
153 } 153 }
154 154
155 if (arg->buf == 0) 155 if (arg->buf == NULL)
156 goto gendata_h48_return_size; 156 goto gendata_h48_return_size;
157 157
158 if (!readtableinfo(arg->buf, &cocsepinfo)) { 158 if (!readtableinfo(arg->buf, &cocsepinfo)) {
159 LOG("gendata_h48: could not read info for cocsep table\n"); 159 LOG("gendata_h48: could not read info for cocsep table\n");
160 goto gendata_h48_error; 160 goto gendata_h48_error;
161 } 161 }
162
162 cocsepinfo.next = cocsepsize; 163 cocsepinfo.next = cocsepsize;
163 if (!writetableinfo(&cocsepinfo, arg->buf)) { 164 if (!writetableinfo(&cocsepinfo, arg->buf)) {
164 LOG("gendata_h48: could not write info for cocsep table" 165 LOG("gendata_h48: could not write info for cocsep table"

Generated with cgit - Back to sebastiano.tronto.net