Skip to content

Commit 93ca3ea

Browse files
authored
strip first char of version string for !GDL.RELEASE if it is "v" (#1780)
1 parent 86806a3 commit 93ca3ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/initsysvar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ namespace SysVar
656656

657657
// !GDL (to allow distinguish IDL/GDL with DEFSYSV, '!gdl', exists=exists )
658658
DStructGDL* gdlStruct = new DStructGDL( "!GNUDATALANGUAGE");
659-
gdlStruct->NewTag("RELEASE", new DStringGDL( VERSION));
659+
gdlStruct->NewTag("RELEASE", new DStringGDL( VERSION + (VERSION[0] == 'v' ? 1 : 0)));
660660

661661
// creating an explicit build date in !GDL (also exist in !version)
662662
gdlStruct->NewTag("BUILD_DATE", new DStringGDL(BUILD_DATE));

0 commit comments

Comments
 (0)