| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/comms/xmorse/files/ |
Upload File : |
Codebox.cxx:122:16: error: non-constant-expression cannot be narrowed from type 'int' to 'char' in initializer list [-Wc++11-narrowing]
char s[] = { c, '\0' }; // A 1-char string version of c.
^
--- Codebox.cxx.orig 2018-07-29 11:57:10 UTC
+++ Codebox.cxx
@@ -119,7 +119,7 @@ int Codebox::handle(int event) { // Called by FLTK whe
* moved to the end of the line, and the character is inserted there.
*/
void Codebox::append(int c) { // Append character to displayed line
- char s[] = { c, '\0' }; // A 1-char string version of c.
+ char s[] = { static_cast<char>(c), '\0' }; // A 1-char string version of c.
if (size() >= maximum_size()) // If no room for character,
cut(0,1); // discard one off left side
position(maximum_size()); // Return to right end of buffer