Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Add parenthesis around a macro parameter #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R-package/src/scave/indexedvectorfilereader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ long IndexedVectorFileReaderNode::readBlock(const Block *blockPtr, const PortDat

const char *file = filename.c_str();
file_offset_t offset;
#define CHECK(cond, msg) {if (!cond) throw opp_runtime_error(msg ", file %s, offset %"LL"d", file, (int64)offset); }
#define CHECK(cond, msg) {if (!(cond)) throw opp_runtime_error(msg ", file %s, offset %"LL"d", file, (int64)offset); }

VectorData *vector = portDataPtr->vector;
file_offset_t startOffset = blockPtr->startOffset;
Expand Down
2 changes: 1 addition & 1 deletion R-package/src/scave/indexedvectorfilereader2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool IndexedVectorFileReaderNode2::readNextBlock(PortData &portData)

const char *file = filename.c_str();
file_offset_t offset;
#define CHECK(cond, msg) {if (!cond) throw opp_runtime_error(msg ", file %s, offset %"LL"d", file, (int64)offset); }
#define CHECK(cond, msg) {if (!(cond)) throw opp_runtime_error(msg ", file %s, offset %"LL"d", file, (int64)offset); }


Block &block = vector->blocks[portData.currentBlockIndex++];
Expand Down