emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Same frame-positioning bug as before: negative top/left values on Wi


From: Kim F. Storm
Subject: Re: Same frame-positioning bug as before: negative top/left values on Windows
Date: Fri, 21 Jul 2006 23:47:34 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> +  left = w32_get_arg (Qnil, Qleft, "left", "Left", RES_TYPE_NUMBER);
> +  if (!EQ (left, Qunbound))
> +    CHECK_NUMBER (left);

> One gripe I have with it is that the CHECK_NUMBER macro does not seem
> to work.  If I use a string for the `top' or `left' property no error
> is thrown.  Does anybody know why?

You pass RES_TYPE_NUMBER to w32_get_arg, which is
evaluated like this:

            case RES_TYPE_NUMBER:
              return make_number (atoi (SDATA (tem)));

so if the value is not a number, atoi returns zero.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]