fixed compilation on arch

This commit is contained in:
csoler 2023-07-24 18:35:21 +02:00
parent 7a4558a3da
commit 1512819200
2 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@ void Histogram::draw(QPainter */*painter*/) const
void Histogram::insert(double val)
{
long int bin = (uint32_t)floor((val - mStart)/(mEnd - mStart) * mBins.size());
long int bin = (long int)floor((val - mStart)/(mEnd - mStart) * mBins.size());
if(bin >= 0 && bin < mBins.size())
if(bin >= 0 && bin < (long int)mBins.size())
++mBins[bin];
}

View File

@ -20,7 +20,7 @@
#include <vector>
#include <iostream>
#include <stdint.h>
#include <cstdint>
class QPainter;