Grelet Jacques / statis

Dependents:   Ni-MH_V3

Revision:
4:080b3e0819a1
Parent:
3:27019c77bf90
--- a/ring.h	Sun Dec 02 16:35:56 2012 +0000
+++ b/ring.h	Tue Mar 19 13:33:59 2013 +0000
@@ -107,7 +107,7 @@
 template <class T_elem>
 void  Ring<T_elem>::incr( P_ELEM &ptr )
 {
-    if( ++ptr - tampon >= taille ) ptr = tampon;
+    if( ++ptr - tampon >= (T_elem)taille ) ptr = tampon;
 }
 
 /*****************************************************************************