diff options
Diffstat (limited to 'meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch')
-rw-r--r-- | meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch index 9ac62015d8..7ca582fe5d 100644 --- a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch +++ b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 035467aa0abfbc0de7e5d24543d4aab37301593c Mon Sep 17 00:00:00 2001 | 1 | From 3af5a1e579e3324a13ba1f892c7befb3ab32d899 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 7 Mar 2019 21:56:57 -0800 | 3 | Date: Thu, 7 Mar 2019 21:56:57 -0800 |
4 | Subject: [PATCH] pattern.c: Change string lenght parameter to be size_t in | 4 | Subject: [PATCH] pattern.c: Change string lenght parameter to be size_t in |
@@ -11,23 +11,24 @@ pattern.c:455:9: error: 'memset' specified size between 18446744071562067968 and | |||
11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
12 | 12 | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | |||
14 | --- | 15 | --- |
15 | pattern.c | 2 +- | 16 | pattern.c | 2 +- |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/pattern.c b/pattern.c | 19 | diff --git a/pattern.c b/pattern.c |
19 | index 45b1b0c..f73a4c2 100644 | 20 | index ffadd3f..4e5f187 100644 |
20 | --- a/pattern.c | 21 | --- a/pattern.c |
21 | +++ b/pattern.c | 22 | +++ b/pattern.c |
22 | @@ -428,7 +428,7 @@ static int do_row(unsigned char *known, unsigned char *deduced, | 23 | @@ -428,7 +428,7 @@ static bool do_row(unsigned char *known, unsigned char *deduced, |
23 | unsigned char *row, | 24 | unsigned char *row, |
24 | unsigned char *minpos_done, unsigned char *maxpos_done, | 25 | unsigned char *minpos_done, unsigned char *maxpos_done, |
25 | unsigned char *minpos_ok, unsigned char *maxpos_ok, | 26 | unsigned char *minpos_ok, unsigned char *maxpos_ok, |
26 | - unsigned char *start, int len, int step, int *data, | 27 | - unsigned char *start, int len, int step, int *data, |
27 | + unsigned char *start, size_t len, int step, int *data, | 28 | + unsigned char *start, size_t len, int step, int *data, |
28 | unsigned int *changed | 29 | unsigned int *changed |
29 | #ifdef STANDALONE_SOLVER | 30 | #ifdef STANDALONE_SOLVER |
30 | , const char *rowcol, int index, int cluewid | 31 | , const char *rowcol, int index, int cluewid |
31 | -- | 32 | -- |
32 | 2.21.0 | 33 | 2.17.1 |
33 | 34 | ||