X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fsgiplay.c;h=3650ca4a1ac717145885d1f39eaf229e1ac882b4;hb=b516a64aa419c6a06613b1c880db2b9a1605b949;hp=222a3e607f8d676ed3216bfb1113e2be46b48fa7;hpb=d3dd71489ab2730d79536ebdc3c56cca82766e9d;p=chise%2Fxemacs-chise.git.1 diff --git a/src/sgiplay.c b/src/sgiplay.c index 222a3e6..3650ca4 100644 --- a/src/sgiplay.c +++ b/src/sgiplay.c @@ -328,7 +328,7 @@ play_internal (unsigned char *data, int length, AudioContext ac) if (ac == (AudioContext) 0) return; - data = ac->ac_data; + data = (unsigned char *) ac->ac_data; limit = data + ac->ac_size; while (data < limit) { @@ -363,7 +363,7 @@ drain_audio_port (AudioContext ac) static int st_ulaw_to_linear (int u) { - static CONST short table[] = {0,132,396,924,1980,4092,8316,16764}; + static const short table[] = {0,132,396,924,1980,4092,8316,16764}; int u1 = ~u; short exponent = (u1 >> 4) & 0x07; int mantissa = u1 & 0x0f;