[Scummvm-devel] Re: [Scummvm-cvs-logs] CVS: scummvm/sound mididrv.cpp,1.7,1.8

Florian Schmitt florian at galois.de
Sat Apr 20 14:36:02 CEST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Modified Files:
> 	mididrv.cpp
> Log Message:
> Warning fix.

No, that breaks it, because we do a binary write(device, buf, position) later, 
which doesn't like the larger type too much. What you probably want, is to 
cast b explicitly to char where needed. The appended patch makes midi work 
again, and should remove the warning (my version of gcc didn't warn at all, 
so I'm not sure of this).

regards,
  Flo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: You may find my public key at http://www.galois.de/florian.schmitt.pubkey.asc

iD8DBQE8wd8lH7Gei80C0lQRAppIAJ9fhguEiBok7cSuAWu9GMruWNFtqQCdFcry
6TrLFg3PkmIyf+yOndzsww0=
=FX+i
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warning_fix.patch
Type: text/x-diff
Size: 1492 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20020420/888e83b7/attachment.patch>


More information about the Scummvm-devel mailing list