[libgda/wip/lantw/dont-hard-code-the-path-of-python-dont-use-non-standard-uint-type: 2/2] Don't use non-standard uint type
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/wip/lantw/dont-hard-code-the-path-of-python-dont-use-non-standard-uint-type: 2/2] Don't use non-standard uint type
- Date: Wed, 10 Jul 2019 10:09:39 +0000 (UTC)
commit a8cd46cd3c44f6b2ed72e86b878371a12ef1d564
Author: Ting-Wei Lan <lantw src gnome org>
Date: Wed Jul 10 18:06:22 2019 +0800
Don't use non-standard uint type
Not all systems have uint declared in system headers.
libgda/sqlite/gen_emb_string.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgda/sqlite/gen_emb_string.c b/libgda/sqlite/gen_emb_string.c
index 4f40b0e4f..f51deae72 100644
--- a/libgda/sqlite/gen_emb_string.c
+++ b/libgda/sqlite/gen_emb_string.c
@@ -107,7 +107,7 @@ main (int argc,char** argv)
/* copy the file into the buffer: */
n_read = fread (buffer + buffer_index, 1, fsize, file);
- if (n_read != (uint) fsize) {
+ if (n_read != (unsigned int) fsize) {
fprintf (stderr, "Reading error");
fclose (file);
return 1;
@@ -116,8 +116,8 @@ main (int argc,char** argv)
/* alter buffer */
int added = 0;
int real_added = 0;
- for (i = buffer_index; (uint) i < buffer_index + n_read + added; i++) {
- if (buffer_index + n_read + added + 2 >= (uint) maxlen) {
+ for (i = buffer_index; (unsigned int) i < buffer_index + n_read + added; i++) {
+ if (buffer_index + n_read + added + 2 >= (unsigned int) maxlen) {
fprintf (stderr, "Max buffer size reached\nIncrease MAXSIZE constant and
re-run\n");
fclose (file);
return 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]