summaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-06-12 23:49:00 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-06-12 23:49:00 -0700
commit96f53c6c3d6d31bc81187b5a5fdb3ec942cd6f51 (patch)
tree739d32600e433069b546595b927a1adebdedde18 /src/sound.c
parent83c77d31ace0a54f6e0c0c384648f172f837c27b (diff)
downloademacs-96f53c6c3d6d31bc81187b5a5fdb3ec942cd6f51.tar.gz
* sound.c (Fplay_sound_internal): Remove cast to unsigned long.
It's more likely to cause problems (due to unsigned overflow) than to cure them.
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.c b/src/sound.c
index 794c8e64e54..0e71e66352e 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1447,7 +1447,7 @@ Internal use only, use `play-sound' instead. */)
}
else if (FLOATP (attrs[SOUND_VOLUME]))
{
- ui_volume_tmp = (unsigned long) XFLOAT_DATA (attrs[SOUND_VOLUME]) * 100;
+ ui_volume_tmp = XFLOAT_DATA (attrs[SOUND_VOLUME]) * 100;
}
/*
Based on some experiments I have conducted, a value of 100 or less