summaryrefslogtreecommitdiff
path: root/ACE/apps/gperf/src/List_Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/apps/gperf/src/List_Node.cpp')
-rw-r--r--ACE/apps/gperf/src/List_Node.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ACE/apps/gperf/src/List_Node.cpp b/ACE/apps/gperf/src/List_Node.cpp
index 037f2406435..c75edc8af52 100644
--- a/ACE/apps/gperf/src/List_Node.cpp
+++ b/ACE/apps/gperf/src/List_Node.cpp
@@ -24,6 +24,7 @@
#include "List_Node.h"
#include "Vectors.h"
#include "ace/OS_NS_ctype.h"
+#include "ace/Truncate.h"
/// Sorts the key set alphabetically to speed up subsequent operation
/// Uses insertion sort since the set is probably quite small.
@@ -117,7 +118,7 @@ List_Node::List_Node (char *k, int len)
*ptr = '\0';
// Sort the KEYSIG items alphabetically.
- sort (keysig, ptr - keysig);
+ sort (keysig, ACE_Utils::truncate_cast<int> (ptr - keysig));
}
List_Node::~List_Node (void)