diff options
| author | Paul Eggert | 2011-03-17 23:27:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-17 23:27:08 -0700 |
| commit | 500603320d95a06f8dfb25ab3f4447e115fea56d (patch) | |
| tree | f16ec6774799f7ffcd53c53adbe2e3bef4029726 /src | |
| parent | c4fc4e301ecaeb98bd3041ca2ce7a106cafefef1 (diff) | |
| download | emacs-500603320d95a06f8dfb25ab3f4447e115fea56d.tar.gz emacs-500603320d95a06f8dfb25ab3f4447e115fea56d.zip | |
* sound.c (wav_play, au_play, Fplay_sound_internal):
Fix pointer signedness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/sound.c | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index aa9de9deacb..aab298274cc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-03-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * sound.c (wav_play, au_play, Fplay_sound_internal): | ||
| 4 | Fix pointer signedness. | ||
| 5 | |||
| 3 | * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing. | 6 | * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing. |
| 4 | 7 | ||
| 5 | * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes. | 8 | * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes. |
diff --git a/src/sound.c b/src/sound.c index 3a1668e4903..47d4c325997 100644 --- a/src/sound.c +++ b/src/sound.c | |||
| @@ -595,7 +595,7 @@ wav_play (struct sound *s, struct sound_device *sd) | |||
| 595 | files I found so far. If someone feels inclined to implement the | 595 | files I found so far. If someone feels inclined to implement the |
| 596 | whole RIFF-WAVE spec, please do. */ | 596 | whole RIFF-WAVE spec, please do. */ |
| 597 | if (STRINGP (s->data)) | 597 | if (STRINGP (s->data)) |
| 598 | sd->write (sd, SDATA (s->data) + sizeof *header, | 598 | sd->write (sd, SSDATA (s->data) + sizeof *header, |
| 599 | SBYTES (s->data) - sizeof *header); | 599 | SBYTES (s->data) - sizeof *header); |
| 600 | else | 600 | else |
| 601 | { | 601 | { |
| @@ -686,7 +686,7 @@ au_play (struct sound *s, struct sound_device *sd) | |||
| 686 | sd->configure (sd); | 686 | sd->configure (sd); |
| 687 | 687 | ||
| 688 | if (STRINGP (s->data)) | 688 | if (STRINGP (s->data)) |
| 689 | sd->write (sd, SDATA (s->data) + header->data_offset, | 689 | sd->write (sd, SSDATA (s->data) + header->data_offset, |
| 690 | SBYTES (s->data) - header->data_offset); | 690 | SBYTES (s->data) - header->data_offset); |
| 691 | else | 691 | else |
| 692 | { | 692 | { |
| @@ -1410,7 +1410,7 @@ Internal use only, use `play-sound' instead. */) | |||
| 1410 | { | 1410 | { |
| 1411 | int len = SCHARS (attrs[SOUND_DEVICE]); | 1411 | int len = SCHARS (attrs[SOUND_DEVICE]); |
| 1412 | current_sound_device->file = (char *) alloca (len + 1); | 1412 | current_sound_device->file = (char *) alloca (len + 1); |
| 1413 | strcpy (current_sound_device->file, SDATA (attrs[SOUND_DEVICE])); | 1413 | strcpy (current_sound_device->file, SSDATA (attrs[SOUND_DEVICE])); |
| 1414 | } | 1414 | } |
| 1415 | 1415 | ||
| 1416 | if (INTEGERP (attrs[SOUND_VOLUME])) | 1416 | if (INTEGERP (attrs[SOUND_VOLUME])) |
| @@ -1498,4 +1498,3 @@ init_sound (void) | |||
| 1498 | } | 1498 | } |
| 1499 | 1499 | ||
| 1500 | #endif /* HAVE_SOUND */ | 1500 | #endif /* HAVE_SOUND */ |
| 1501 | |||