mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 16:09:37 -05:00
fixed compilation on arch
This commit is contained in:
parent
7a4558a3da
commit
1512819200
@ -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];
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class QPainter;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user