Skip to content

Commit dc384cd

Browse files
committed
On MacOS the minor version number needs to be printed with two characters
other wise Smalltalk getSystemAttribute: 1002 answers 110.1 on Big Sur 11.0 instead of 1100.1 as expected.
1 parent 529937d commit dc384cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/iOS/vm/OSX/sqSqueakOSXApplication+attributes.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ - (char *) getAttribute:(sqInt)indexNumber {
6464
case 1002: { /* OS name: "solaris2.5" on unix, "win95" on win32, ... */
6565
static char data[32] = { 0 };
6666
NSOperatingSystemVersion version = [self getOperatingSystemVersion];
67-
sprintf(data,"%ld%ld.%ld",
67+
sprintf(data,"%ld%02ld.%ld",
6868
(long)version.majorVersion,
6969
(long)version.minorVersion,
7070
(long)version.patchVersion);

0 commit comments

Comments
 (0)