LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gcc-4.7-fix of Package simulavr (Project CrossToolchain:avr)

gcc-4.7 does not find resize anymore, so use this pointer to point to it

diff -Nurd simulavr-1.0.0.orig/src/systemclock.cpp simulavr-1.0.0/src/systemclock.cpp
--- simulavr-1.0.0.orig/src/systemclock.cpp	2013-03-17 09:51:24.557628567 +0100
+++ simulavr-1.0.0/src/systemclock.cpp	2013-03-17 09:50:51.052662567 +0100
@@ -67,7 +67,7 @@
 template<typename Key, typename Value>
 void MinHeap<Key, Value>::Insert(Key k, Value v)
 {
-	resize(this->size()+1);
+	this->resize(this->size()+1);
 	for(unsigned i = this->size();;) {
 		unsigned parent = i/2;
 		if(parent == 0 || (*this)[parent-1].first < k) {