Skip to content

Commit e3036cb

Browse files
committed
Fix another build error on clang/Mac.
1 parent 4e41469 commit e3036cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/parser/parser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class Parser : public SceneTask
253253
virtual UCS2String GetFileName() const override { return sourceFile->Name(); }
254254
virtual POV_LONG GetLine() const override { return raw.lexeme.position.line; }
255255
virtual POV_LONG GetColumn() const override { return raw.lexeme.position.column; }
256-
virtual POV_LONG GetOffset() const override { return raw.lexeme.position.offset; }
256+
virtual POV_OFF_T GetOffset() const override { return raw.lexeme.position.offset; }
257257
};
258258

259259
struct LValue
@@ -522,7 +522,7 @@ class Parser : public SceneTask
522522
virtual UCS2String GetFileName() const override { return file->Name(); }
523523
virtual POV_LONG GetLine() const override { return line; }
524524
virtual POV_LONG GetColumn() const override { return column; }
525-
virtual POV_LONG GetOffset() const override { return offset; }
525+
virtual POV_OFF_T GetOffset() const override { return offset; }
526526
};
527527

528528
intrusive_ptr<FunctionVM> mpFunctionVM;

0 commit comments

Comments
 (0)