diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2014-08-05 08:27:03 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2014-08-05 11:53:16 +0000 |
commit | 0284435d2c9d3e6e818bf160108271f4fd390dc9 (patch) | |
tree | 468936e7430bd007e3bf9f37903a9ae509c53ffb /src | |
parent | 6824af55301f5b0844649f2104f58841f73f3e10 (diff) | |
download | libcroco-0284435d2c9d3e6e818bf160108271f4fd390dc9.tar.gz |
Use unsigned types where appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=710076
Diffstat (limited to 'src')
-rw-r--r-- | src/cr-input.c | 2 | ||||
-rw-r--r-- | src/cr-style.c | 6 | ||||
-rw-r--r-- | src/cr-tknzr.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/cr-input.c b/src/cr-input.c index 3cc283e..5395ae2 100644 --- a/src/cr-input.c +++ b/src/cr-input.c @@ -746,7 +746,7 @@ enum CRStatus cr_input_peek_char (CRInput const * a_this, guint32 * a_char) { enum CRStatus status = CR_OK; - glong consumed = 0, + gulong consumed = 0, nb_bytes_left = 0; g_return_val_if_fail (a_this && PRIVATE (a_this) diff --git a/src/cr-style.c b/src/cr-style.c index fa3306a..84bc58e 100644 --- a/src/cr-style.c +++ b/src/cr-style.c @@ -319,7 +319,7 @@ set_prop_font_weight_from_value (CRStyle * a_style, CRTerm * a_value); static const gchar * num_prop_code_to_string (enum CRNumProp a_code) { - gint len = sizeof (gv_num_props_dump_infos) / + guint len = sizeof (gv_num_props_dump_infos) / sizeof (struct CRNumPropEnumDumpInfo); if (a_code >= len) { cr_utils_trace_info ("A field has been added " @@ -342,7 +342,7 @@ num_prop_code_to_string (enum CRNumProp a_code) static const gchar * rgb_prop_code_to_string (enum CRRgbProp a_code) { - gint len = sizeof (gv_rgb_props_dump_infos) / + guint len = sizeof (gv_rgb_props_dump_infos) / sizeof (struct CRRgbPropEnumDumpInfo); if (a_code >= len) { @@ -366,7 +366,7 @@ rgb_prop_code_to_string (enum CRRgbProp a_code) static const gchar * border_style_prop_code_to_string (enum CRBorderStyleProp a_code) { - gint len = sizeof (gv_border_style_props_dump_infos) / + guint len = sizeof (gv_border_style_props_dump_infos) / sizeof (struct CRBorderStylePropEnumDumpInfo); if (a_code >= len) { diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c index dba30de..2491172 100644 --- a/src/cr-tknzr.c +++ b/src/cr-tknzr.c @@ -195,7 +195,7 @@ CHECK_PARSING_STATUS (status, TRUE) ; */ #define SKIP_CHARS(a_tknzr, a_nb_chars) \ { \ -glong nb_chars = a_nb_chars ; \ +gulong nb_chars = a_nb_chars ; \ status = cr_input_consume_chars \ (PRIVATE (a_tknzr)->input,0, &nb_chars) ; \ CHECK_PARSING_STATUS (status, TRUE) ; \ @@ -408,7 +408,7 @@ cr_tknzr_try_to_skip_spaces (CRTknzr * a_this) } if (cr_utils_is_white_space (cur_char) == TRUE) { - glong nb_chars = -1; /*consume all spaces */ + gulong nb_chars = -1; /*consume all spaces */ status = cr_input_consume_white_spaces (PRIVATE (a_this)->input, &nb_chars); |