diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-03-01 12:35:26 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-03-01 12:35:26 -0500 |
| commit | ad29f3a56e4db0c56e216cd0b4a0f1bdbcc47ff8 (patch) | |
| tree | 6e99f573dd971716db285b9a2efe267143afdfd1 | |
| parent | 6098a18434216a210a795b94876b983fa1a3c1ea (diff) | |
| download | volute-ad29f3a56e4db0c56e216cd0b4a0f1bdbcc47ff8.zip | |
remove redundant printf modifiers
| -rw-r--r-- | test.h | 2 | ||||
| -rw-r--r-- | ui.c | 2 | ||||
| -rw-r--r-- | widget.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -2,7 +2,7 @@ #define test(got, want) { \ if (got < want-EPSILON || got > want+EPSILON) { \ - fprintf(stderr, "got %lf; want %lf\n", got, want); \ + fprintf(stderr, "got %f; want %f\n", got, want); \ assert(got == want); \ } \ } @@ -110,7 +110,7 @@ set_volume_flow_rate(UI *ui, int idx) { convert = volume_flow_rate_readers[unit_idx]; v = convert(volume_flow_rate(&ui->points[idx])); - snprintf(ui->volume_flow_rate[idx], sizeof(ui->volume_flow_rate[idx]), "%lf", v); + snprintf(ui->volume_flow_rate[idx], sizeof(ui->volume_flow_rate[idx]), "%f", v); } void @@ -35,7 +35,7 @@ w_field(mu_Context *ctx, w_Field *f) { void w_set_field(w_Field *f, double val) { f->value = val; - snprintf(f->buf, sizeof(f->buf), "%lf", val); + snprintf(f->buf, sizeof(f->buf), "%f", val); } void |