[tracker] libtracker-data: Fix signed char comparison in SPARQL scanner
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Fix signed char comparison in SPARQL scanner
- Date: Fri, 3 Sep 2010 15:27:49 +0000 (UTC)
commit 40d7214ff1dbe08a718a7da1b6f6d5efd2d3d3b7
Author: Jürg Billeter <j bitron ch>
Date: Fri Sep 3 17:07:39 2010 +0200
libtracker-data: Fix signed char comparison in SPARQL scanner
src/libtracker-data/tracker-sparql-scanner.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-scanner.vala b/src/libtracker-data/tracker-sparql-scanner.vala
index d216ac0..5d592d4 100644
--- a/src/libtracker-data/tracker-sparql-scanner.vala
+++ b/src/libtracker-data/tracker-sparql-scanner.vala
@@ -645,7 +645,7 @@ public class Tracker.SparqlScanner : Object {
line++;
column = 1;
token_length_in_chars = 3;
- } else if (current[0] <= 0x7f) {
+ } else if ((uchar) current[0] <= 0x7f) {
// ASCII
current++;
token_length_in_chars++;
@@ -700,7 +700,7 @@ public class Tracker.SparqlScanner : Object {
}
} else if (current[0] == '\n') {
break;
- } else if (current[0] <= 0x7f) {
+ } else if ((uchar) current[0] <= 0x7f) {
// ASCII
current++;
token_length_in_chars++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]