summaryrefslogtreecommitdiff
path: root/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib-util/include/pjlib-util/scanner_cis_bitwise.h')
-rw-r--r--pjlib-util/include/pjlib-util/scanner_cis_bitwise.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h b/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h
index 3f466941..9d0b2adc 100644
--- a/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h
+++ b/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h
@@ -69,7 +69,7 @@ typedef struct pj_cis_t
* @param cis Pointer to character input specification.
* @param c The character.
*/
-#define PJ_CIS_SET(cis,c) ((cis)->cis_buf[(c)] |= (1 << (cis)->cis_id))
+#define PJ_CIS_SET(cis,c) ((cis)->cis_buf[(int)(c)] |= (1 << (cis)->cis_id))
/**
* Remove the membership of the specified character.
@@ -78,7 +78,7 @@ typedef struct pj_cis_t
* @param cis Pointer to character input specification.
* @param c The character to be removed from the membership.
*/
-#define PJ_CIS_CLR(cis,c) ((cis)->cis_buf[c] &= ~(1 << (cis)->cis_id))
+#define PJ_CIS_CLR(cis,c) ((cis)->cis_buf[(int)c] &= ~(1 << (cis)->cis_id))
/**
* Check the membership of the specified character.
@@ -87,7 +87,7 @@ typedef struct pj_cis_t
* @param cis Pointer to character input specification.
* @param c The character.
*/
-#define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[c] & (1 << (cis)->cis_id))
+#define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[(int)c] & (1 << (cis)->cis_id))