<?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>topic Re: int64 problem in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549652#M11083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Fri Mar 14 04:42:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned already, it's all about proper casting of constants or variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The compiler is not the guilty one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:36:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:36:50Z</dc:date>
    <item>
      <title>int64 problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549650#M11081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mspahr on Thu Mar 13 14:04:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso V5.2.6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int64 is not working correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int64var=3352*3352*3352*3352;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a warning integer overflow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer is 126,245,538,697,216&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int 64 is good to 9,223,372,036,854,775,807.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int32vara=3352*3352;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int32varb=3352*3352;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int64var=int32vara*int32varb;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;got -730001408&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549650#M11081</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: int64 problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549651#M11082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MarcVonWindscooting on Thu Mar 13 14:48:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your result can hold large values, your calculation is in 'int' (int32!) only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use 3352llu or similar and your problems are gone.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549651#M11082</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: int64 problem</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549652#M11083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Fri Mar 14 04:42:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned already, it's all about proper casting of constants or variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The compiler is not the guilty one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:36:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/int64-problem/m-p/549652#M11083</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:36:50Z</dc:date>
    </item>
  </channel>
</rss>

