Commit 4a9bf9f6 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation in 64 bit architecture

parent 7ea1d8c4
......@@ -32,7 +32,7 @@ using namespace boost::lambda;
void random_rewire(GraphInterface& gi, string strat, bool self_loops,
bool parallel_edges, size_t seed)
rng_t rng(seed);
rng_t rng((uint32_t) seed);
GraphInterface::edge_index_map_t edge_index =
......@@ -84,7 +84,7 @@ python::object wrap_vector_not_owned(vector<ValueType>& vec)
PyArrayObject* ndarray;
int val_type = mpl::at<numpy_types,ValueType>::type::value;
int size = vec.size();
npy_intp size = vec.size();
if (vec.empty())
ndarray = (PyArrayObject*) PyArray_SimpleNew(1, &size, val_type);
Supports Markdown
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