Index: src/OFSystemInfo.h ================================================================== --- src/OFSystemInfo.h +++ src/OFSystemInfo.h @@ -27,12 +27,12 @@ @interface OFSystemInfo: OFObject #ifdef OF_HAVE_CLASS_PROPERTIES @property (class, readonly, nonatomic) size_t pageSize; @property (class, readonly, nonatomic) size_t numberOfCPUs; @property (class, readonly, nonatomic) OFString *ObjFWVersion; -@property (class, readonly, nonatomic) unsigned int ObjFWVersionMajor; -@property (class, readonly, nonatomic) unsigned int ObjFWVersionMinor; +@property (class, readonly, nonatomic) unsigned short ObjFWVersionMajor; +@property (class, readonly, nonatomic) unsigned short ObjFWVersionMinor; @property (class, readonly, nullable, nonatomic) OFString *operatingSystemName; @property (class, readonly, nullable, nonatomic) OFString *operatingSystemVersion; # ifdef OF_HAVE_FILES @property (class, readonly, nullable, nonatomic) OFString *userDataPath; @@ -87,18 +87,18 @@ /** * @brief The major version of ObjFW. * * @return The major version of ObjFW */ -+ (unsigned int)ObjFWVersionMajor; ++ (unsigned short)ObjFWVersionMajor; /** * @brief The minor version of ObjFW. * * @return The minor version of ObjFW */ -+ (unsigned int)ObjFWVersionMinor; ++ (unsigned short)ObjFWVersionMinor; /** * @brief Returns the name of the operating system the application is running * on. * Index: src/OFSystemInfo.m ================================================================== --- src/OFSystemInfo.m +++ src/OFSystemInfo.m @@ -319,16 +319,16 @@ + (OFString *)ObjFWVersion { return @PACKAGE_VERSION; } -+ (unsigned int)ObjFWVersionMajor ++ (unsigned short)ObjFWVersionMajor { return OBJFW_VERSION_MAJOR; } -+ (unsigned int)ObjFWVersionMinor ++ (unsigned short)ObjFWVersionMinor { return OBJFW_VERSION_MINOR; } + (OFString *)operatingSystemName