Skip to content

Commit b99c085

Browse files
Improve new error report functions in ad_structure.hpp.
Co-authored-by: Pedro Gomes <[email protected]>
1 parent 06f6ad6 commit b99c085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/include/basic_types/ad_structure.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ FORCEINLINE void SetDebugReportFile(struct ErrorReport* report, std::ofstream* o
730730
report->out = output_file;
731731
}
732732

733-
FORCEINLINE unsigned long* GetErrorCount(struct ErrorReport* report) { return &(report->ErrorCounter); }
733+
FORCEINLINE unsigned long& GetErrorCount(ErrorReport& report) { return report->ErrorCounter; }
734734

735735
#ifdef CODI_TAG_TAPE
736736

0 commit comments

Comments
 (0)