etl/etl-1.2.1-gc-8.1.patch

24 lines
733 B
Diff

From cb05b072fe6fffb4433140c631f422bdbc036722 Mon Sep 17 00:00:00 2001
From: ice0 <konoplin@gmail.com>
Date: Sat, 26 May 2018 07:54:58 -0700
Subject: [PATCH] fixed error preventing builing on gcc 8.1
---
ETL/ETL/_pen.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ETL/ETL/_pen.h b/ETL/ETL/_pen.h
index 7c57f702e..13913be97 100644
--- a/ETL/ETL/_pen.h
+++ b/ETL/ETL/_pen.h
@@ -136,7 +136,8 @@ class generic_pen
typedef int value_type;
value_type x,y;
difference_type(value_type x, value_type y):x(x),y(y) { }
- value_type &operator[](int i)const { return i?y:x; }
+ const value_type &operator[](int i) const { return i?y:x; }
+ value_type &operator[](int i) { return i?y:x; }
};
protected: