Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9076

Re: pbdebug in limited quantities

$
0
0

It's just sample code. It's actually incrementing a var called lines.

 

The part of the C code that shows an error is this:

 

  _boolTemp53 = ( _decimalTemp53, _decimalTemp54 ) != 0;

 

It looks like it should be a call to some function and a check against a non-zero return, but there's no function name in there.

 

Here's the actual code:

               int lines               lines = ceiling(qtys[ctr2])               if rxtype = 20 then                    if lines <= 9 then lines = 1                    if lines >= 10 then lines = 2                    if ceiling(qtys[ctr2]) <> qtys[ctr2] then lines++               end if

 

Basically I'm testing to see if I need one more line of data in an output stream based on fractional quantity.

 

I'll be trying a separate var for ceiling result and see how it handles that. May also try mod(qtys[ctr2], 1) and see if it's <> 0 (meaning there's a fraction present).

 

This is totally unrelated to the problem with the response window. This problem occurred because I wanted to compile without pcode and see if it still crashed the same way.


Viewing all articles
Browse latest Browse all 9076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>