FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use decimal instead of hex notation in formatting of the version numb… · geographika/mapserver@0653d86 · GitHub

Repository navigation

Commit 0653d86

Browse files
committed
Use decimal instead of hex notation in formatting of the version number returned by msGetVersion (MapServer#2279)
git-svn-id: http://svn.osgeo.org/mapserver/trunk@6752 7532c77e-422f-0410-93f4-f0b67bdd69e2
1 parent a9d9ff6 commit 0653d86

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎maperror.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,7 @@ int msGetVersionInt()
580580
}
581581
else
582582
{
583-
version = atoi(tokens[0])*0x10000 + atoi(tokens[1])*0x100 +
584-
atoi(tokens[2]);
583+
version = atoi(tokens[0])*10000 + atoi(tokens[1])*100 + atoi(tokens[2]);
585584
}
586585
if (tokens)
587586
msFreeCharArray(tokens, n);

‎mapscript/doc/mapscript.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,7 @@ msGetVersion() : string
508508

509509
msGetVersionInt() : int
510510
Returns the MapServer version number (x.y.z) as an integer
511-
(x*0x10000 + y*0x100 + z). (New in v5.0)
512-
e.g. V5.4.3 would return 0x050403 (note the hexadecimal notation).
511+
(x*10000 + y*100 + z). (New in v5.0) e.g. V5.4.3 would return 50403.
513512

514513
msIO_installStdoutToBuffer() : void
515514
Installs a mapserver IO handler directing future stdout output to a memory

‎mapscript/php3/README‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ Currently supported classes, properties and methods:
124124

125125
int ms_GetVersionInt()
126126
Returns the MapServer version number (x.y.z) as an integer
127-
(x*0x10000 + y*0x100 + z). (New in v5.0)
128-
e.g. V5.4.3 would return 0x050403 (note the hexadecimal notation).
127+
(x*10000 + y*100 + z). (New in v5.0) e.g. V5.4.3 would return 50403.
129128

130129
array ms_TokenizeMap(string map_file_name)
131130
Preparses a mapfile through the MapServer parser and return an

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL