-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libdatrie] fix trietool for MSVC runtime
- Loading branch information
Showing
4 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Source: libdatrie | ||
Version: 0.2.10-1 | ||
Version: 0.2.10-2 | ||
Description: implementation of double-array structure for representing trie | ||
Build-Depends: libiconv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 086a76ad7c17060d504371ea724cf5d651d43eb3 Mon Sep 17 00:00:00 2001 | ||
From: Mikhail Paulyshka <me@mixaill.tk> | ||
Date: Thu, 28 Dec 2017 16:07:51 +0300 | ||
Subject: [PATCH] fix trietool for MSVC runtime | ||
|
||
--- | ||
tools/trietool.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/tools/trietool.c b/tools/trietool.c | ||
index 4cfde2a..7c90905 100644 | ||
--- a/tools/trietool.c | ||
+++ b/tools/trietool.c | ||
@@ -589,12 +589,12 @@ string_trim (char *s) | ||
char *p; | ||
|
||
/* skip leading white spaces */ | ||
- while (*s && isspace (*s)) | ||
+ while (*s && isspace ((unsigned char)*s)) | ||
++s; | ||
|
||
/* trim trailing white spaces */ | ||
p = s + strlen (s) - 1; | ||
- while (isspace (*p)) | ||
+ while (isspace ((unsigned char)*p)) | ||
--p; | ||
*++p = '\0'; | ||
|
||
-- | ||
2.14.1.windows.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters