Jarda Pajskr / freemaster_lib

Dependents:   FreeMASTER_HelloWorld FreeMASTER_HelloWorld2 FreeMASTER_HelloWorld3

Fork of freemaster_lib by Jarda Pajskr

Revision:
11:d1de61dc3766
Parent:
10:ee28cf2ae687
Child:
15:24a63ac82fc3
--- a/freemaster_tsa.h	Wed Jun 04 14:48:34 2014 +0000
+++ b/freemaster_tsa.h	Wed Jun 04 17:06:21 2014 +0000
@@ -185,7 +185,7 @@
     const FMSTR_TSA_ENTRY* FMSTR_TsaGetTable(FMSTR_TSA_TINDEX nTableIndex, FMSTR_TSA_TSIZE* pTableSize) {
         
 #define FMSTR_TSA_TABLE(id) \
-    if(!nTableIndex--) { \
+    if(!(nTableIndex--)) { \
         FMSTR_TSA_FUNC_PROTO(id); \
         return FMSTR_TSA_FUNC(id)(pTableSize); \
     } else
@@ -193,7 +193,7 @@
 #if (FMSTR_USE_TSA_DYNAMIC)
 
 #define FMSTR_TSA_TABLE_LIST_END() \
-    if(!nTableIndex--) { \
+    if(!(nTableIndex--)) { \
         FMSTR_TSA_FUNC_PROTO(dynamic_tsa); \
         return FMSTR_TSA_FUNC(dynamic_tsa)(pTableSize); \
     } else \