From 647be8fd25d23fc760efd2b954fcdc72ebe027d1 Mon Sep 17 00:00:00 2001
From: kudzu_cp <6d05c8c8ef5431987001abfdb2eadc9593ac9498>
Date: Tue, 12 Jun 2012 13:56:35 +0000
Subject: [PATCH] X#
---
source/Cosmos.sln | 1 -
source2/Compiler/Cosmos.XSharp/Parser.cs | 2 +-
.../XSharpCompilerTester/Cosmos.Compiler.XSharp.Test.csproj | 4 ++--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/source/Cosmos.sln b/source/Cosmos.sln
index 3f9ad2645..83e18fac3 100644
--- a/source/Cosmos.sln
+++ b/source/Cosmos.sln
@@ -899,7 +899,6 @@ Global
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Builder|Mixed Platforms.Build.0 = Release|Any CPU
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Builder|x86.ActiveCfg = Release|Any CPU
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
- {6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Debug|x86.ActiveCfg = Debug|Any CPU
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{6882C74B-3ED2-4D76-9E7B-67B6A28808BC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
diff --git a/source2/Compiler/Cosmos.XSharp/Parser.cs b/source2/Compiler/Cosmos.XSharp/Parser.cs
index 0ffe72334..1e4cf9bc9 100644
--- a/source2/Compiler/Cosmos.XSharp/Parser.cs
+++ b/source2/Compiler/Cosmos.XSharp/Parser.cs
@@ -115,7 +115,7 @@ namespace Cosmos.Compiler.XSharp {
xLastCharType = xCharType;
}
// Last token
- if (i - mStart > 0) {
+ if (mStart < mData.Length) {
NewToken(ref i);
}
}
diff --git a/source2/Tests/XSharpCompilerTester/Cosmos.Compiler.XSharp.Test.csproj b/source2/Tests/XSharpCompilerTester/Cosmos.Compiler.XSharp.Test.csproj
index 22a698b0f..15b92f17d 100644
--- a/source2/Tests/XSharpCompilerTester/Cosmos.Compiler.XSharp.Test.csproj
+++ b/source2/Tests/XSharpCompilerTester/Cosmos.Compiler.XSharp.Test.csproj
@@ -19,7 +19,7 @@
SAK
- x86
+ AnyCPU
true
full
false
@@ -29,7 +29,7 @@
4
- x86
+ AnyCPU
pdbonly
true
bin\Release\