<?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: LP64 migration warning in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501096#M705029</link>
    <description>Now i get:&lt;BR /&gt;LP64 migration warning 753: Cast converts 32 bit integer to long&lt;BR /&gt;&lt;BR /&gt;..</description>
    <pubDate>Wed, 09 Mar 2005 11:13:38 GMT</pubDate>
    <dc:creator>FrankAtWork</dc:creator>
    <dc:date>2005-03-09T11:13:38Z</dc:date>
    <item>
      <title>LP64 migration warning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501094#M705027</link>
      <description>When compiling the source-code line:&lt;BR /&gt;if ( strncmp( LV.zustand_dialog, "PF", 2 ) )&lt;BR /&gt;&lt;BR /&gt;i get the compiler warning:&lt;BR /&gt;LP64 migration warning 753: Argument #3 converts 32 bit integer to long&lt;BR /&gt;&lt;BR /&gt;What can i do against it ?&lt;BR /&gt;&lt;BR /&gt;Many thanks in advance&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2005 11:05:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501094#M705027</guid>
      <dc:creator>FrankAtWork</dc:creator>
      <dc:date>2005-03-09T11:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: LP64 migration warning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501095#M705028</link>
      <description>Cast the constant 2 to the expected type. ie 2 ==&amp;gt; (size_t) 2.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2005 11:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501095#M705028</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-09T11:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: LP64 migration warning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501096#M705029</link>
      <description>Now i get:&lt;BR /&gt;LP64 migration warning 753: Cast converts 32 bit integer to long&lt;BR /&gt;&lt;BR /&gt;..</description>
      <pubDate>Wed, 09 Mar 2005 11:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501096#M705029</guid>
      <dc:creator>FrankAtWork</dc:creator>
      <dc:date>2005-03-09T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: LP64 migration warning</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501097#M705030</link>
      <description>Okay, your are probably compiling with the options +DD64 and +M2. You can reduce to +M1. Under the +DD64 (or DA2.0W) models integers (and integer constants) are 32 bits while pointers, longs, and size_t's (the type of the 3rd argument in strncmp) are 64-bits. &lt;BR /&gt;&lt;BR /&gt;If you want to "outbushwhack" the warning completely then&lt;BR /&gt;(size_t) 2L BUT you now set yourself up for the reverse potential problem if your are running +DD32. However, since +M2 requires +DD64 to be asserted, you don't get the warning for the inverse case. In any event, these are warnings only just that and the actual type conversions in either direction work and the size_t cast forces the correct behavior.&lt;BR /&gt;&lt;BR /&gt;(size_t) 2L will take care of the warning.&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2005 11:45:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp64-migration-warning/m-p/3501097#M705030</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-03-09T11:45:39Z</dc:date>
    </item>
  </channel>
</rss>

