CHANGED: - added explicit cast to remove compiler warning
authorChristian Taedcke
Thu, 09 Sep 2010 15:28:48 +0200
changeset 646 4177b05ab835
parent 645 93ad82ee0426
child 647 8203ce2b9752
CHANGED: - added explicit cast to remove compiler warning
drivers/can_ixxat_win32/ixxat.cpp
--- a/drivers/can_ixxat_win32/ixxat.cpp	Tue Feb 16 08:36:56 2010 +0100
+++ b/drivers/can_ixxat_win32/ixxat.cpp	Thu Sep 09 15:28:48 2010 +0200
@@ -141,7 +141,7 @@
    VCI_CAN_OBJ obj;
    if (m_RX_Que.extract_top(obj))
       {
-      m->cob_id = obj.id;
+      m->cob_id = static_cast<UNS16>(obj.id); //valid for 11Bit ids
       m->len = obj.len;
       m->rtr = (obj.rtr == VCI_RX_BUF) ? NOT_A_REQUEST : REQUEST;
       if (m->rtr == NOT_A_REQUEST)