From 72896f9f87dc68b50f0a321e3c87d0fb17de27d2 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Oct 01 2017 15:35:51 +0000 Subject: Fix the int64 definition on 32-bit platforms. --- diff --git a/gfan-warning.patch b/gfan-warning.patch index 40611c9..00230da 100644 --- a/gfan-warning.patch +++ b/gfan-warning.patch @@ -259,8 +259,21 @@ assert(ret!=0); for(int i=0;i + #include + #include ++#include + + using namespace std; + +-typedef signed long int int64; ++typedef int64_t int64; + + void outOfRange(int i, int n); + +@@ -72,7 +73,7 @@ public: template explicit Vektor(const Vektor& c) :v(c.size()) { @@ -269,7 +282,7 @@ } //-------- -@@ -80,10 +80,10 @@ public: +@@ -80,10 +81,10 @@ public: //-------- typ& operator[](int n) { @@ -282,7 +295,7 @@ const typ& UNCHECKEDACCESS(int n)const{return (v[n]);} typ& UNCHECKEDACCESS(int n){return (v[n]);} -@@ -92,7 +92,7 @@ public: +@@ -92,7 +93,7 @@ public: //------------- unsigned int size()const{return v.size();}; void resize(int n){v.resize(n,0);}; @@ -291,7 +304,7 @@ void push_back(typ a) { v.push_back(a); -@@ -109,7 +109,7 @@ public: +@@ -109,7 +110,7 @@ public: { if(size()b.size())return false; @@ -300,7 +313,7 @@ { if(v[i]v[i])b=v[i]; -@@ -234,7 +234,7 @@ public: +@@ -234,7 +235,7 @@ public: bool aOK=true; bool bOK=true; @@ -386,7 +399,7 @@ { aOK&=(v[i]-k); -@@ -249,9 +249,9 @@ public: +@@ -249,9 +250,9 @@ public: typ pq=dot(p,q); return pq*pq==pp*qq; */ @@ -398,7 +411,7 @@ for(i=0;i0)if(q.v[i]=0); @@ -469,7 +482,7 @@ assert(end>=begin); Vektor ret(end-begin); for(int i=0;i