diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-07 14:34:50 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2016-05-07 14:34:50 -0300 |
commit | 7d72715a6bb556882f8f9afbf9d9d8fb03350c1d (patch) | |
tree | 57054e5e6ad9059e79370bc3eebdca672d717e58 | |
parent | 572546f8063095ff3195ef10823ec1f4882092f3 (diff) | |
parent | 54621e8b8fd804f06bf5f007dcb52b469521296c (diff) |
Merge pull request #490 from Explorer09/macro-fixes
Fix macro Header_forEachColumn
-rw-r--r-- | Header.c | 2 | ||||
-rw-r--r-- | Header.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ typedef struct Header_ { #endif #ifndef Header_forEachColumn -#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns; i_++) +#define Header_forEachColumn(this_, i_) for (int (i_)=0; (i_) < (this_)->nrColumns; ++(i_)) #endif Header* Header_new(struct ProcessList_* pl, Settings* settings, int nrColumns) { @@ -28,7 +28,7 @@ typedef struct Header_ { #endif #ifndef Header_forEachColumn -#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns; i_++) +#define Header_forEachColumn(this_, i_) for (int (i_)=0; (i_) < (this_)->nrColumns; ++(i_)) #endif Header* Header_new(struct ProcessList_* pl, Settings* settings, int nrColumns); |