something wrong with rbits
#1

am getting this

Код:
error 025: function heading differs from prototype
the error shows on this rbits.inc

Код:
// its showing the error on the stock bit_set.
stock Bit_Set(BIT_TAGS: abArray[], iIdx, const iValue, const e_Bits: iShift, const iSize = sizeof(abArray)) {
	new
		bVar = ((iIdx & ((1 << _: (Bit32 - iShift)) - 1)) << _: iShift),
		bLim = ((1 << (1 << _: iShift)) - 1)
	;
	iIdx = (iIdx >>> _: (Bit32 - iShift));
	
	if(!(-1 < iIdx < iSize)) {
		return 0;
	}
	(_: abArray[iIdx] &= ~(bLim << bVar));
	(_: abArray[iIdx] |= ((bLim & iValue) << bVar));
	
	return 1;
}
Reply


Messages In This Thread
something wrong with rbits - by Yves - 26.05.2014, 15:54
Re : something wrong with rbits - by S4t3K - 26.05.2014, 15:57
Re: something wrong with rbits - by Yves - 26.05.2014, 16:02
Re : something wrong with rbits - by S4t3K - 26.05.2014, 16:06
Re: something wrong with rbits - by Yves - 26.05.2014, 16:10
Re : something wrong with rbits - by S4t3K - 26.05.2014, 16:16
Re: something wrong with rbits - by Konstantinos - 26.05.2014, 16:19
Re: something wrong with rbits - by Yves - 26.05.2014, 16:25
Re: something wrong with rbits - by Konstantinos - 26.05.2014, 16:31
Re: something wrong with rbits - by Yves - 26.05.2014, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)