Kbase P59346: Unpredictable results on 64 bit platforms from prordi
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/07/2005 |
|
Status: Unverified
SYMPTOM(s):
Unpredictable results on 64 bit platforms from prordi
int and long in prodi are interchangeable on 32 bit platforms
CAUSE:
This is a known issue being investigated by Development.
On 64bit long has 8 bytes size. prordi returns the integer value in the most significant 4 bytes and appends 4 bytes for a total of eight.
FIX:
Use int* instead of long* for the return value in prordi or take the long value and right-shift it 32 bits ( pval >> 32 ).