Issues with 3.2.5 and keyboard

John M McIntosh johnmci at smalltalkconsulting.com
Mon Mar 11 05:17:55 UTC 2002


>In message <p05101400b8b1c51e013c@[192.168.1.25]>
>           John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
>
>>  Mmm if you cast a char to an int in the new code, oops.
>>  Mmm unsigned char to int.
>>
>>  I should know better I think I had the same C coding bug many years
>>  ago that caused quite a disaster at the time.
>Worse yet you fixed a piece of my code with exactly that bug (cf "Win
>Tim's money!" not so very long ago. Err, well a couple of years ago.
>
>tim

Ah, how soon we forget. Mind you couldn't find it if I recall...

The fix for the bug, since some of you can recompile the os-x version is

/* keystate: low byte is the ascii character; next 4 bits are modifier bits */
asciiChar = (unsigned char) macCharCode;

This does not affect os-9 users.

-- 
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================



More information about the Squeak-dev mailing list