Mercurial > emacs
diff src/frame.c @ 107538:75e87467a0db
Merge from `emacs-23'.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 24 Mar 2010 14:02:56 -0400 |
parents | 05f285327bae af52c11fa4bd |
children | bef5d1738c0b |
line wrap: on
line diff
--- a/src/frame.c Wed Mar 24 13:33:39 2010 -0400 +++ b/src/frame.c Wed Mar 24 14:02:56 2010 -0400 @@ -4005,6 +4005,13 @@ case RES_TYPE_NUMBER: return make_number (atoi (SDATA (tem))); + case RES_TYPE_BOOLEAN_NUMBER: + if (!strcmp (SDATA (tem), "on") + || !strcmp (SDATA (tem), "true")) + return make_number (1); + return make_number (atoi (SDATA (tem))); + break; + case RES_TYPE_FLOAT: return make_float (atof (SDATA (tem)));