patch from Michael Weirauch: cast before shifting vendor id. thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-05-19 18:07:51 +00:00
parent 127da0271b
commit 8eadf4d51f
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ ac97_attach(ac97_dev **_dev, codec_reg_read reg_read, codec_reg_write reg_write,
dev->cookie = cookie; dev->cookie = cookie;
dev->reg_read = reg_read; dev->reg_read = reg_read;
dev->reg_write = reg_write; dev->reg_write = reg_write;
dev->codec_id = (reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2); dev->codec_id = ((uint32)reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
codec = find_codec_table(dev->codec_id); codec = find_codec_table(dev->codec_id);
dev->codec_info = codec->info; dev->codec_info = codec->info;
dev->init = codec->init; dev->init = codec->init;

View File

@ -199,7 +199,7 @@ ac97_attach(ac97_dev **_dev, codec_reg_read reg_read, codec_reg_write reg_write,
dev->cookie = cookie; dev->cookie = cookie;
dev->reg_read = reg_read; dev->reg_read = reg_read;
dev->reg_write = reg_write; dev->reg_write = reg_write;
dev->codec_id = (reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2); dev->codec_id = ((uint32)reg_read(cookie, AC97_VENDOR_ID1) << 16) | reg_read(cookie, AC97_VENDOR_ID2);
codec = find_codec_table(dev->codec_id); codec = find_codec_table(dev->codec_id);
dev->codec_info = codec->info; dev->codec_info = codec->info;
dev->init = codec->init; dev->init = codec->init;