aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexAda.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-07-21 04:49:46 +0000
committernyamatongwe <unknown>2003-07-21 04:49:46 +0000
commitcc9b3f98605389db1bc07a1551a5892201907690 (patch)
tree704d2d51e3bbfc8b4a01d420f001bd0fe0304b27 /src/LexAda.cxx
parenta05c96f2412efbb37bc496563ad8e952842adbee (diff)
downloadscintilla-mirror-cc9b3f98605389db1bc07a1551a5892201907690.tar.gz
Converted some ints to size_t for 64 bit safety.
Diffstat (limited to 'src/LexAda.cxx')
-rw-r--r--src/LexAda.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LexAda.cxx b/src/LexAda.cxx
index 263f7da45..2e5f891b4 100644
--- a/src/LexAda.cxx
+++ b/src/LexAda.cxx
@@ -321,7 +321,7 @@ static bool IsValidIdentifier(const SString& identifier) {
// First character can't be '_', so initialize the flag to true
bool lastWasUnderscore = true;
- int length = identifier.length();
+ size_t length = identifier.length();
// Zero-length identifiers are not valid (these can occur inside labels)
if (length == 0) {
@@ -334,7 +334,7 @@ static bool IsValidIdentifier(const SString& identifier) {
}
// Check for only valid characters and no double underscores
- for (int i = 0; i < length; i++) {
+ for (size_t i = 0; i < length; i++) {
if (!IsWordCharacter(identifier[i]) ||
(identifier[i] == '_' && lastWasUnderscore)) {
return false;
@@ -355,8 +355,8 @@ static bool IsValidNumber(const SString& number) {
int hashPos = number.search("#");
bool seenDot = false;
- int i = 0;
- int length = number.length();
+ size_t i = 0;
+ size_t length = number.length();
if (length == 0)
return false; // Just in case