diff options
| author | Ken Raeburn | 2009-08-17 01:25:54 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2009-08-17 01:25:54 +0000 |
| commit | f601cdf35d3e76ffc4927ea35e0f82e72b1ba37f (patch) | |
| tree | 2d9f05c4ba9510645a5cf87741c13ab37a4d16e1 /src/dbusbind.c | |
| parent | 4230ab74b7bec1bc05801d91117f133efe88df25 (diff) | |
| download | emacs-f601cdf35d3e76ffc4927ea35e0f82e72b1ba37f.tar.gz emacs-f601cdf35d3e76ffc4927ea35e0f82e72b1ba37f.zip | |
* lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
(XFLOAT_INIT): New macro for storing a float value.
* alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
* fns.c (sxhash): Copy out the value of a float in order to examine its bytes.
* dbusbind.c (xd_append_arg): Likewise.
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index a38a9944005..76b0da54205 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -475,11 +475,13 @@ xd_append_arg (dtype, object, iter) | |||
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | case DBUS_TYPE_DOUBLE: | 477 | case DBUS_TYPE_DOUBLE: |
| 478 | XD_DEBUG_MESSAGE ("%c %f", dtype, XFLOAT_DATA (object)); | 478 | { |
| 479 | if (!dbus_message_iter_append_basic (iter, dtype, | 479 | double val = XFLOAT_DATA (object); |
| 480 | &XFLOAT_DATA (object))) | 480 | XD_DEBUG_MESSAGE ("%c %f", dtype, val); |
| 481 | XD_SIGNAL2 (build_string ("Unable to append argument"), object); | 481 | if (!dbus_message_iter_append_basic (iter, dtype, &val)) |
| 482 | return; | 482 | XD_SIGNAL2 (build_string ("Unable to append argument"), object); |
| 483 | return; | ||
| 484 | } | ||
| 483 | 485 | ||
| 484 | case DBUS_TYPE_STRING: | 486 | case DBUS_TYPE_STRING: |
| 485 | case DBUS_TYPE_OBJECT_PATH: | 487 | case DBUS_TYPE_OBJECT_PATH: |