any.\r
\r
Copyright (C) 2013, Red Hat, Inc.\r
- Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
\r
UsedElemIdx = Dev->TxLastUsed++ % Dev->TxRing.QueueSize;\r
DescIdx = Dev->TxRing.Used.UsedElem[UsedElemIdx].Id;\r
- ASSERT (DescIdx < 2 * Dev->TxMaxPending - 1);\r
+ ASSERT (DescIdx < (UINT32) (2 * Dev->TxMaxPending - 1));\r
\r
//\r
// report buffer address to caller that has been enqueued by caller\r
//\r
- *TxBuf = (VOID *) Dev->TxRing.Desc[DescIdx + 1].Addr;\r
+ *TxBuf = (VOID *)(UINTN) Dev->TxRing.Desc[DescIdx + 1].Addr;\r
\r
//\r
// now this descriptor can be used again to enqueue a transmit buffer\r