Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: ring.h
- 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;
}
/*****************************************************************************