[qfcc] Default math.vector_mult correctly

The check was bogus in that it had `!val == 0` for non-traditional, and
was checking the wrong spot for traditional.
This commit is contained in:
Bill Currie 2025-01-18 16:40:51 +09:00
parent 974306fa12
commit fd52c055e0

View file

@ -822,7 +822,7 @@ DecodeArgs (int argc, char **argv)
if (!options_user_set.code.vector_components) { if (!options_user_set.code.vector_components) {
options.code.vector_components = true; options.code.vector_components = true;
} }
if (options.math.vector_mult == 0) { if (!options_user_set.math.vector_mult) {
options.math.vector_mult = QC_DOT; options.math.vector_mult = QC_DOT;
} }
} }
@ -846,7 +846,7 @@ DecodeArgs (int argc, char **argv)
if (!options_user_set.code.vector_components) { if (!options_user_set.code.vector_components) {
options.code.vector_components = false; options.code.vector_components = false;
} }
if (!options_user_set.math.vector_mult == 0) { if (!options_user_set.math.vector_mult) {
options.math.vector_mult = options.advanced == 1 ? QC_DOT options.math.vector_mult = options.advanced == 1 ? QC_DOT
: QC_HADAMARD; : QC_HADAMARD;
} }