summaryrefslogtreecommitdiff
path: root/libs/ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-07-22 16:08:11 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-07-22 16:08:11 +0000
commitc11c01ef200ce01ec454ff1d8023732d2cd6b06e (patch)
tree416db0a1caa4800d24226993fc1193db7e93934c /libs/ardour/utils.cc
parent1c1b359ff21aac57bd71d291049d657f66cf31f5 (diff)
remove a bunch of uses of long (mostly replaced by int32_t)
git-svn-id: svn://localhost/ardour2/branches/3.0@7472 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r--libs/ardour/utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 66835dc1b2..cfa183f499 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -96,7 +96,7 @@ bump_name_once (const std::string& name, char delimiter)
}
errno = 0;
- long int version = strtol (name.c_str()+delim+1, (char **)NULL, 10);
+ int32_t version = strtol (name.c_str()+delim+1, (char **)NULL, 10);
if (isnumber == 0 || errno != 0) {
// last_element is not a number, or is too large
@@ -106,7 +106,7 @@ bump_name_once (const std::string& name, char delimiter)
} else {
char buf[32];
- snprintf (buf, sizeof(buf), "%ld", version+1);
+ snprintf (buf, sizeof(buf), "%d", version+1);
newname = name.substr (0, delim+1);
newname += buf;