This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Compiler warning fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: eCos Patches <ecos-patches at sources dot redhat dot com>
- Date: Mon, 6 Oct 2003 20:24:38 +0200
- Subject: Compiler warning fix
This fixes a compiler warning i introduced with one of the patches i
committed recently.
Andrew
Index: services/memalloc/common//current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/memalloc/common/current/ChangeLog,v
retrieving revision 1.28
diff -u -r1.28 ChangeLog
--- services/memalloc/common//current/ChangeLog 6 Oct 2003 16:41:07 -0000 1.28
+++ services/memalloc/common//current/ChangeLog 6 Oct 2003 18:23:07 -0000
@@ -1,3 +1,8 @@
+2003-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * src/dlmalloc.cxx (Cyg_Mempool_dlmalloc_Implementation): Fixed
+ compiler warning added by previous patch.
+
2003-09-30 Eric Doenges <Eric.Doengea@DynaPel.com>
* cdl/memalloc.cdl, src/dlmalloc.cxx: Make the minimum memory
Index: services/memalloc/common//current/src/dlmalloc.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/memalloc/common/current/src/dlmalloc.cxx,v
retrieving revision 1.7
diff -u -r1.7 dlmalloc.cxx
--- services/memalloc/common//current/src/dlmalloc.cxx 6 Oct 2003 16:41:07 -0000 1.7
+++ services/memalloc/common//current/src/dlmalloc.cxx 6 Oct 2003 18:23:12 -0000
@@ -980,7 +980,7 @@
}
// too small to be useful?
- if ( correction + 2*MALLOC_ALIGNMENT > (unsigned) size )
+ if ( correction + 2*(unsigned)MALLOC_ALIGNMENT > (unsigned) size )
// help catch errors. Don't fail now.
arenabase = NULL;
else {