aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/oslib
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 08:49:18 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 08:49:18 +0000
commit9683ccfa78dff27ef8479e3af8d6817f51455ec2 (patch)
tree76838c24ea15707106c9668031c27c8859bf9080 /os/common/oslib
parent0cde2e51c7219647f961623d7995326a0324f12c (diff)
downloadChibiOS-9683ccfa78dff27ef8479e3af8d6817f51455ec2.tar.gz
ChibiOS-9683ccfa78dff27ef8479e3af8d6817f51455ec2.tar.bz2
ChibiOS-9683ccfa78dff27ef8479e3af8d6817f51455ec2.zip
MISRA-related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10083 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib')
-rw-r--r--os/common/oslib/include/chheap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/common/oslib/include/chheap.h b/os/common/oslib/include/chheap.h
index 64840a0c7..db8b70269 100644
--- a/os/common/oslib/include/chheap.h
+++ b/os/common/oslib/include/chheap.h
@@ -39,9 +39,9 @@
* @note Cannot use the sizeof operator in this macro.
*/
#if (SIZEOF_PTR == 4) || defined(__DOXYGEN__)
-#define CH_HEAP_ALIGNMENT 8
+#define CH_HEAP_ALIGNMENT 8U
#elif (SIZEOF_PTR == 2)
-#define CH_HEAP_ALIGNMENT 4
+#define CH_HEAP_ALIGNMENT 4U
#else
#error "unsupported pointer size"
#endif