summaryrefslogtreecommitdiff
path: root/src/inlines.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
commit735098e097ad62bdc4b1121c6c0c983eb7483485 (patch)
treea858fedc30e6149ed430784942413a2b06741ec9 /src/inlines.c
parenta541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (diff)
parentce0e58469f7c4abf3f51bde6d3298215d6ef99d1 (diff)
Merge pull request #76 from kainjow/msvc-warnings
Fix some MSVC warnings
Diffstat (limited to 'src/inlines.c')
-rwxr-xr-xsrc/inlines.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inlines.c b/src/inlines.c
index f8a2cfc..3275ddd 100755
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -1034,13 +1034,13 @@ static int parse_inline(subject *subj, cmark_node *parent, int options) {
case '_':
case '\'':
case '"':
- new_inl = handle_delim(subj, c, options & CMARK_OPT_SMART);
+ new_inl = handle_delim(subj, c, (options & CMARK_OPT_SMART) != 0);
break;
case '-':
- new_inl = handle_hyphen(subj, options & CMARK_OPT_SMART);
+ new_inl = handle_hyphen(subj, (options & CMARK_OPT_SMART) != 0);
break;
case '.':
- new_inl = handle_period(subj, options & CMARK_OPT_SMART);
+ new_inl = handle_period(subj, (options & CMARK_OPT_SMART) != 0);
break;
case '[':
advance(subj);