@@ -117,7 +117,7 @@ static void Field(FieldParseContext *ctx);
117117#define IGNORE_BUMP (x ) abs(x)
118118#define TOGGLE_BUMP (x ) (-x)
119119
120- #define OffsetPointer (x , offset ) ((typeof(x))((char*)x + (offset)))
120+ #define OFFSET_POINTER (x , offset ) ((typeof(x))((char*)x + (offset)))
121121
122122//=================================================================================================
123123//
@@ -451,7 +451,7 @@ double copyFile(size_t fileSize) // only called in very very rare cases
451451 return -1.0 ; // # nocov
452452 memcpy (mmp_copy , mmp , fileSize );
453453 sof = mmp_copy ;
454- eof = (char * )OffsetPointer (mmp_copy , fileSize );
454+ eof = (char * )OFFSET_POINTER (mmp_copy , fileSize );
455455 return wallclock ()- tt ;
456456}
457457
@@ -2400,9 +2400,9 @@ int freadMain(freadMainArgs _args) {
24002400 break ;
24012401 }
24022402 // shift current buffer positions, since `myBuffX`s were probably moved by realloc
2403- fctx .targets [8 ] = OffsetPointer (ctx .buff8 , myNrow * rowSize8 );
2404- fctx .targets [4 ] = OffsetPointer (ctx .buff4 , myNrow * rowSize4 );
2405- fctx .targets [1 ] = OffsetPointer (ctx .buff1 , myNrow * rowSize1 );
2403+ fctx .targets [8 ] = OFFSET_POINTER (ctx .buff8 , myNrow * rowSize8 );
2404+ fctx .targets [4 ] = OFFSET_POINTER (ctx .buff4 , myNrow * rowSize4 );
2405+ fctx .targets [1 ] = OFFSET_POINTER (ctx .buff1 , myNrow * rowSize1 );
24062406 }
24072407 tLineStart = tch ; // for error message
24082408 const char * fieldStart = tch ;
0 commit comments