diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-29 12:01:13 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-29 12:01:13 +0000 |
commit | abb648ddf505a86d05570379433bbbd813f5d487 (patch) | |
tree | 338189b0241cc18857637b032704947b4b748829 /comms/xmorse | |
parent | 71ed70806148bd38b7a659adbb5f0eb05861f9a4 (diff) | |
download | ports-abb648ddf505a86d05570379433bbbd813f5d487.tar.gz ports-abb648ddf505a86d05570379433bbbd813f5d487.zip |
Notes
Diffstat (limited to 'comms/xmorse')
-rw-r--r-- | comms/xmorse/files/patch-Codebox.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/comms/xmorse/files/patch-Codebox.cxx b/comms/xmorse/files/patch-Codebox.cxx new file mode 100644 index 000000000000..da0f163b3303 --- /dev/null +++ b/comms/xmorse/files/patch-Codebox.cxx @@ -0,0 +1,15 @@ +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 |