summaryrefslogtreecommitdiff
path: root/src/mem/gems_common/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/gems_common/util.cc')
-rw-r--r--src/mem/gems_common/util.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mem/gems_common/util.cc b/src/mem/gems_common/util.cc
index d2ca8cb96..d7ce2e893 100644
--- a/src/mem/gems_common/util.cc
+++ b/src/mem/gems_common/util.cc
@@ -31,9 +31,13 @@
*/
#include <cassert>
+#include <iomanip>
+#include <sstream>
#include "mem/gems_common/util.hh"
+using namespace std;
+
// Split a string into a head and tail strings on the specified
// character. Return the head and the string passed in is modified by
// removing the head, leaving just the tail.
@@ -43,7 +47,7 @@ string string_split(string& str, char split_character)
string head = "";
string tail = "";
- uint counter = 0;
+ unsigned counter = 0;
while(counter < str.size()) {
if (str[counter] == split_character) {
counter++;