Commit 7677a0f3 authored by unknown's avatar unknown

update compilation windows

parent cabcccf8
......@@ -25,6 +25,10 @@
#ifndef __HISTOGRAM__
#define __HISTOGRAM__
#define _USE_MATH_DEFINES
#include <cmath>
#include "Topology/generic/attributeHandler.h"
#include "Topology/generic/cellmarker.h"
#include "Geometry/vector_gen.h"
......
......@@ -60,7 +60,7 @@ void Histogram::populateHisto(unsigned int nbclasses)
{
//compute nb classes if necesary
if (nbclasses == 0)
m_nbclasses = (unsigned int)(sqrt(m_dataIdx.size()));
m_nbclasses = (unsigned int)(sqrt(double(m_dataIdx.size())));
else
m_nbclasses = nbclasses;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment