Skip to content

Commit 05718d5

Browse files
Update Version.h (#75)
Use curly braces in member initialisation. "major" and "minor" are macros defined by the gcc compiler. The macros are defined in sys/sysmacros.h which is getting pulled in by #include <string> Using curly braces stops the macro from being expanded.
1 parent c5c133f commit 05718d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GLTFSDK/Inc/GLTFSDK/Version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft
1717
uint32_t major;
1818
uint32_t minor;
1919

20-
constexpr Version(uint32_t major, uint32_t minor) : major(major), minor(minor)
20+
constexpr Version(uint32_t major, uint32_t minor) : major{major}, minor{minor}
2121
{
2222
}
2323

0 commit comments

Comments
 (0)