lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [08/50] [abbrv] lucenenet git commit: Fixed long/ulong casting issues in QueryParserTokenManager.
Date Sun, 11 Sep 2016 21:30:39 GMT
Fixed long/ulong casting issues in QueryParserTokenManager.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/4e04b59d
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/4e04b59d
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/4e04b59d

Branch: refs/heads/master
Commit: 4e04b59d242aad7638cce979355c6f386a6a3bfa
Parents: de9d52b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Jul 31 20:12:20 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Sep 2 22:30:06 2016 +0700

----------------------------------------------------------------------
 .../Classic/QueryParserTokenManager.cs          | 34 ++++++++++----------
 1 file changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4e04b59d/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
----------------------------------------------------------------------
diff --git a/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs b/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
index e92bcb8..aac1505 100644
--- a/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
+++ b/Lucene.Net.QueryParser/Classic/QueryParserTokenManager.cs
@@ -134,16 +134,16 @@ namespace Lucene.Net.QueryParser.Classic
 						{
 							
 							case 49: 
-							case 33: 
-								if ((0xfbff7cf8ffffd9ffL & l) == (ulong) 0L)
+							case 33:
+                                if ((0xfbff7cf8ffffd9ffL & l) == (ulong)0L)
 									break;
 								if (kind > 23)
 									kind = 23;
 								JjCheckNAddTwoStates(33, 34);
 								break;
 							
-							case 0: 
-								if ((0xfbff54f8ffffd9ffL & l) != (ulong) 0L)
+							case 0:
+                                if ((0xfbff54f8ffffd9ffL & l) != (ulong)0L)
 								{
 									if (kind > 23)
 										kind = 23;
@@ -276,7 +276,7 @@ namespace Lucene.Net.QueryParser.Classic
 								break;
 							
 							case 32:
-                                if ((0xfbff54f8ffffd9ffL & l) == 0L)
+                                if ((0xfbff54f8ffffd9ffL & l) == (ulong)0L)
                                     break;
                                 if (kind > 23)
                                     kind = 23;
@@ -293,7 +293,7 @@ namespace Lucene.Net.QueryParser.Classic
                                     JjCheckNAddStates(0, 2);
                                 break;
                             case 37:
-                                if ((0xffff7fffffffffffL & l) != 0L)
+                                if ((0xffff7fffffffffffL & l) != (ulong)0L)
                                     JjCheckNAddStates(0, 2);
                                 break;
                             case 40:
@@ -496,14 +496,14 @@ namespace Lucene.Net.QueryParser.Classic
                                 JjCheckNAddTwoStates(28, 29);
                                 break;
                             case 32:
-                                if ((0x97ffffff87ffffffL & l) == 0L)
+                                if ((0x97ffffff87ffffffL & l) == (ulong)0L)
                                     break;
                                 if (kind > 23)
                                     kind = 23;
                                 JjCheckNAddTwoStates(33, 34);
                                 break;
                             case 33:
-                                if ((0x97ffffff87ffffffL & l) == 0L)
+                                if ((0x97ffffff87ffffffL & l) == (ulong)0L)
                                     break;
                                 if (kind > 23)
                                     kind = 23;
@@ -526,14 +526,14 @@ namespace Lucene.Net.QueryParser.Classic
                                     jjstateSet[jjnewStateCnt++] = 38;
                                 break;
                             case 41:
-                                if ((0x97ffffff87ffffffL & l) == 0L)
+                                if ((0x97ffffff87ffffffL & l) == (ulong)0L)
                                     break;
                                 if (kind > 20)
                                     kind = 20;
                                 JjCheckNAddStates(6, 10);
                                 break;
                             case 42:
-                                if ((0x97ffffff87ffffffL & l) == 0L)
+                                if ((0x97ffffff87ffffffL & l) == (ulong)0L)
                                     break;
                                 if (kind > 20)
                                     kind = 20;
@@ -549,7 +549,7 @@ namespace Lucene.Net.QueryParser.Classic
                                 JjCheckNAddTwoStates(42, 43);
                                 break;
                             case 45:
-                                if ((0x97ffffff87ffffffL & l) != 0L)
+                                if ((0x97ffffff87ffffffL & l) != (ulong)0L)
                                     JjCheckNAddStates(18, 20);
                                 break;
                             case 46:
@@ -927,8 +927,8 @@ namespace Lucene.Net.QueryParser.Classic
 						switch (jjstateSet[--i])
 						{
 							
-							case 0: 
-								if ((0xfffffffeffffffffL & l) != (ulong) 0L)
+							case 0:
+                                if ((0xfffffffeffffffffL & l) != (ulong)0L)
 								{
 									if (kind > 32)
 										kind = 32;
@@ -948,8 +948,8 @@ namespace Lucene.Net.QueryParser.Classic
 									JjCheckNAddTwoStates(2, 4);
 								break;
 							
-							case 2: 
-								if ((0xfffffffbffffffffL & l) != (ulong) 0L)
+							case 2:
+                                if ((0xfffffffbffffffffL & l) != (ulong)0L)
 									JjCheckNAddStates(33, 35);
 								break;
 							
@@ -963,8 +963,8 @@ namespace Lucene.Net.QueryParser.Classic
 									kind = 31;
 								break;
 							
-							case 6: 
-								if ((0xfffffffeffffffffL & l) == (ulong) 0L)
+							case 6:
+                                if ((0xfffffffeffffffffL & l) == (ulong)0L)
 									break;
 								if (kind > 32)
 									kind = 32;


Mime
View raw message