|
@@ -133,7 +133,7 @@ void pr_out(ADAPTER * a)
|
|
i = this->XCurrent;
|
|
i = this->XCurrent;
|
|
X = PTR_X(a,this);
|
|
X = PTR_X(a,this);
|
|
while(i<this->XNum && length<270) {
|
|
while(i<this->XNum && length<270) {
|
|
- clength = MIN((word)(270-length),X[i].PLength-this->XOffset);
|
|
|
|
|
|
+ clength = min((word)(270-length),(word)(X[i].PLength-this->XOffset));
|
|
a->ram_out_buffer(a,
|
|
a->ram_out_buffer(a,
|
|
&ReqOut->XBuffer.P[length],
|
|
&ReqOut->XBuffer.P[length],
|
|
PTR_P(a,this,&X[i].P[this->XOffset]),
|
|
PTR_P(a,this,&X[i].P[this->XOffset]),
|
|
@@ -622,7 +622,7 @@ byte isdn_ind(ADAPTER * a,
|
|
sizeof(a->stream_buffer),
|
|
sizeof(a->stream_buffer),
|
|
&final, NULL, NULL);
|
|
&final, NULL, NULL);
|
|
}
|
|
}
|
|
- IoAdapter->RBuffer.length = MIN(MLength, 270);
|
|
|
|
|
|
+ IoAdapter->RBuffer.length = min(MLength, (word)270);
|
|
if (IoAdapter->RBuffer.length != MLength) {
|
|
if (IoAdapter->RBuffer.length != MLength) {
|
|
this->complete = 0;
|
|
this->complete = 0;
|
|
} else {
|
|
} else {
|
|
@@ -676,9 +676,9 @@ byte isdn_ind(ADAPTER * a,
|
|
this->RCurrent++;
|
|
this->RCurrent++;
|
|
}
|
|
}
|
|
if (cma) {
|
|
if (cma) {
|
|
- clength = MIN(MLength, R[this->RCurrent].PLength-this->ROffset);
|
|
|
|
|
|
+ clength = min(MLength, (word)(R[this->RCurrent].PLength-this->ROffset));
|
|
} else {
|
|
} else {
|
|
- clength = MIN(a->ram_inw(a, &RBuffer->length)-offset,
|
|
|
|
|
|
+ clength = min(a->ram_inw(a, &RBuffer->length)-offset,
|
|
R[this->RCurrent].PLength-this->ROffset);
|
|
R[this->RCurrent].PLength-this->ROffset);
|
|
}
|
|
}
|
|
if(R[this->RCurrent].P) {
|
|
if(R[this->RCurrent].P) {
|