Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: media/midi/usb_midi_input_stream.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/midi/usb_midi_input_stream.cc
diff --git a/media/midi/usb_midi_input_stream.cc b/media/midi/usb_midi_input_stream.cc
index 10f71467302a3b937fcb2dcf49ef7fc1134ac2e7..2eaa6e36b478e9142fdaf6ba9b8a00d74b14725c 100644
--- a/media/midi/usb_midi_input_stream.cc
+++ b/media/midi/usb_midi_input_stream.cc
@@ -52,7 +52,7 @@ void UsbMidiInputStream::Add(const UsbMidiJack& jack) {
void UsbMidiInputStream::OnReceivedData(UsbMidiDevice* device,
int endpoint_number,
- const uint8* data,
+ const uint8_t* data,
size_t size,
base::TimeTicks time) {
DCHECK_EQ(0u, size % kPacketSize);
@@ -65,11 +65,11 @@ void UsbMidiInputStream::OnReceivedData(UsbMidiDevice* device,
void UsbMidiInputStream::ProcessOnePacket(UsbMidiDevice* device,
int endpoint_number,
- const uint8* packet,
+ const uint8_t* packet,
base::TimeTicks time) {
// The first 4 bytes of the packet is accessible here.
- uint8 code_index = packet[0] & 0x0f;
- uint8 cable_number = packet[0] >> 4;
+ uint8_t code_index = packet[0] & 0x0f;
+ uint8_t cable_number = packet[0] >> 4;
const size_t packet_size_table[16] = {
0, 0, 2, 3, 3, 1, 2, 3, 3, 3, 3, 3, 2, 2, 3, 1,
};

Powered by Google App Engine
This is Rietveld 408576698