×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi, all.
I'm really new with C++ and recently while porting a program from ILE/C to
ILE/C++ ran into a strange effect that I cannot explain. Maybe someone can
help me.
Here's a simple program:
#include <stdlib.h>
#include <bcd.h>
int main (int argc, char *argv[])
{
char Day1[7], Day2[7] ;
_DecimalT<15, 0> v1, v2, v3, v4 ;
Attempt to compile it produces error message for conditional assignment:
CZP0207 No common type found for operands with type "_DecimalT<17,0>" and
"_DecimalT<16,0>".
However when I change it (put a plain conditional statement):
#include <stdlib.h>
#include <bcd.h>
int main (int argc, char *argv[])
{
char Day1[7], Day2[7] ;
_DecimalT<15, 0> v1, v2, v3, v4 ;
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.