HiTECNOLOGYs / cl-charms

More up-to-date version of cl-charms. Forked it because it was, apparently, abandoned by author and I couldn't contact him.
https://gitorious.org/cl-charms
Other
158 stars 29 forks source link

Error When Calling Low-Level Keypad #57

Closed oliverdelancey closed 10 months ago

oliverdelancey commented 3 years ago

When running (charms/ll:keypad charms/ll:*stdscr* t), this odd error is triggered:

* (charms/ll:keypad charms/ll:*stdscr* t)

debugger invoked on a TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {1004DE01F3}>:
  The value
    T
  is not of type
    (UNSIGNED-BYTE 8)
  when binding SB-ALIEN::VALUE

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(CL-CHARMS/LOW-LEVEL:KEYPAD #.(SB-SYS:INT-SAP #X00000000) T)
   source: (DEFINE-EXPORTED-CFUNS
            ("intrflush" "keypad" "meta" "nodelay" "notimeout") :INT
            (WINDOW WINDOW-PTR) (BF BOOL))

I cannot make heads or tails of this. The definition of the function in the source code clearly defines it as wanting a window-ptr and bool, nothing to do with unsigned bytes or the like...