<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Classic/Legacy CodeWarriorのトピックRe: C1860: Pointeer conversion: Possible loss of data</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/C1860-Pointeer-conversion-Possible-loss-of-data/m-p/164066#M2904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume this warning occurs when building with the tiny memory model.&lt;/P&gt;&lt;P&gt;Was the code originally written for that memory model (or the default small one)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the tiny memory model in order to point to a flash location use a __far pointer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;void mDisplayText(unsigned char cX, unsigned char cY, char *__far zsTekst);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Dec 2009 05:37:43 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2009-12-29T05:37:43Z</dc:date>
    <item>
      <title>C1860: Pointeer conversion: Possible loss of data</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/C1860-Pointeer-conversion-Possible-loss-of-data/m-p/164065#M2903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have working code written somewhere in 2004. Now I need a little change and have CW6.3 special edition (just downloaded) to do in with.&lt;/P&gt;&lt;P&gt;The MC9S08GT32 device is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a function:&lt;/P&gt;&lt;P&gt;void mDisplayText(unsigned char cX, unsigned char cY, char *zsTekst)&lt;/P&gt;&lt;P&gt;which is called like&lt;/P&gt;&lt;P&gt;mDisplayText(12, 2, "Batt");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replacing the function with&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;void mDisplayText(unsigned char cX, unsigned char cY)&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;mDisplayText(12, 2);&lt;/P&gt;&lt;P&gt;indicates the string parameter is the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I get the C1860 error. I do understand the error and the pointer thing but don't know how to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Dec 2009 17:01:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/C1860-Pointeer-conversion-Possible-loss-of-data/m-p/164065#M2903</guid>
      <dc:creator>Herman</dc:creator>
      <dc:date>2009-12-28T17:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: C1860: Pointeer conversion: Possible loss of data</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/C1860-Pointeer-conversion-Possible-loss-of-data/m-p/164066#M2904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume this warning occurs when building with the tiny memory model.&lt;/P&gt;&lt;P&gt;Was the code originally written for that memory model (or the default small one)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the tiny memory model in order to point to a flash location use a __far pointer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;void mDisplayText(unsigned char cX, unsigned char cY, char *__far zsTekst);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Dec 2009 05:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/C1860-Pointeer-conversion-Possible-loss-of-data/m-p/164066#M2904</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2009-12-29T05:37:43Z</dc:date>
    </item>
  </channel>
</rss>

