Previous 15994 Revisions Next

r9620 Saturday 20th November, 2010 at 13:48:13 UTC by Tim Lindner
Made things more clear to suppress a warning from MSVC.
[src/mess/devices]bitbngr.c

src/mess/devices/bitbngr.c
r9619r9620
176176static float bitbanger_tune_value(running_device *device)
177177{
178178   bitbanger_token *bi = get_token(device);
179   float tunes[] = {0.97, 0.9825, 0.985, 0.9875, 0.99, 0.9925, 0.995, 0.9975, 1.0,
180                  1.0025, 1.005, 1.0075, 1.01, 1.0125, 1.015, 1.0175, 1.02};
179   float tunes[] = {0.97f, 0.9825f, 0.985f, 0.9875f, 0.99f, 0.9925f, 0.995f, 0.9975f, 1.0f,
180                  1.0025f, 1.005f, 1.0075f, 1.01f, 1.0125f, 1.015f, 1.0175f, 1.02f};
181181
182182   return(tunes[bi->tune]);
183183}
r9619r9620
190190static UINT32 bitbanger_baud_value(running_device *device)
191191{
192192   bitbanger_token *bi = get_token(device);
193   float bauds[] = { 150.0, 300.0, 600.0, 1200.0, 2400.0, 4800.0, 9600.0,
194            14400.0, 28800.0, 38400.0, 57600.0, 115200.0};
193   float bauds[] = { 150.0f, 300.0f, 600.0f, 1200.0f, 2400.0f, 4800.0f, 9600.0f,
194            14400.0f, 28800.0f, 38400.0f, 57600.0f, 115200.0f};
195195   float result = bitbanger_tune_value(device) * bauds[bi->baud];
196196   return (UINT32)result;
197197}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team