diff options
| author | Manolo Gouy <Manolo> | 2016-05-31 08:51:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-05-31 08:51:35 +0000 |
| commit | 1f4ca7ef83e43b583a0b82c523e5b767db4259ad (patch) | |
| tree | 08e3cd99ff17e3c7e6d11ead104cc524c1370e71 /src/Fl_Help_View.cxx | |
| parent | d812a06b9a6e44f95b1074ef2490b3764f2054c9 (diff) | |
Polishing conversions between char- and int-typed variables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11760 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Help_View.cxx')
| -rw-r--r-- | src/Fl_Help_View.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 71ceb0790..9ecef37a0 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -3038,12 +3038,12 @@ void Fl_Help_View::end_selection(int clipboard) char *txt = (char*)malloc(len+1), *d = txt; const char *s = value_, *cmd, *src; for (;;) { - int c = *s++; + int c = (*s++) & 0xff; if (c==0) break; if (c=='<') { // begin of some html command. Skip until we find a '>' cmd = s; for (;;) { - c = *s++; + c = (*s++) & 0xff; if (c==0 || c=='>') break; } if (c==0) break; @@ -3080,8 +3080,8 @@ void Fl_Help_View::end_selection(int clipboard) while (*src) { *d++ = *src++; } - c = src[-1]; - p = isspace(c&255) ? ' ' : c; + c = src[-1] & 0xff; + p = isspace(c) ? ' ' : c; } continue; } @@ -3098,7 +3098,7 @@ void Fl_Help_View::end_selection(int clipboard) } int n = (int) (s2-value_); if (n>selection_first && n<=selection_last) { - if (!pre && isspace(c&255)) c = ' '; + if (!pre && isspace(c)) c = ' '; if (p!=' ' || c!=' ') { if (s2 != s) { // c was an HTML entity d += fl_utf8encode(c, d); |
