]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/linedata.h
ncurses 6.0 - patch 20151017
[ncurses.git] / test / linedata.h
index b289c44f23f1426324e1135da4bbb91227b96cf2..751bc6b5db27284762535b4a2a38784c844c38ef 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 2009 Free Software Foundation, Inc.                        *
+ * Copyright (c) 2009-2010,2012 Free Software Foundation, Inc.              *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -85,10 +85,8 @@ read_linedata(WINDOW *work)
                    beep();
                    continue;
                }
-           } else if (code != ERR) {
-               result = ch;
-               break;
            } else {
+               result = (int) ch;
                break;
            }
        }