Browse Source

* fix ratio calc

master
Alex 'AdUser' Z 10 years ago
parent
commit
9996f24d48
  1. 2
      src/database.c

2
src/database.c

@ -210,7 +210,7 @@ ratio_from_rec_data(unsigned char * const data) {
iw = *((uint16_t *)(data + REC_OFF_IW)); iw = *((uint16_t *)(data + REC_OFF_IW));
ih = *((uint16_t *)(data + REC_OFF_IH)); ih = *((uint16_t *)(data + REC_OFF_IH));
return (iw > 0 && ih > 0) ? (iw / ih) : 0.0; return (iw > 0 && ih > 0) ? ((float) iw / ih) : 0.0;
} }
int int

Loading…
Cancel
Save