1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix: integer division without cast

This commit is contained in:
Steffen Vogel 2015-06-10 15:19:06 +02:00
parent b103212a02
commit eb1dd3f0ca

View file

@ -139,7 +139,7 @@ void hist_plot(struct hist *h)
line();
for (int i = 0; i < h->length; i++) {
int bar = HIST_HEIGHT * (h->data[i] / max);
int bar = HIST_HEIGHT * ((double) h->data[i] / max);
info("%3u | %+5.2e | " "%5u" " | %.*s", i, VAL(h, i), h->data[i], bar, buf);
}