lack of max bool type

BlitzMax Forums/BlitzMax Programming/lack of max bool type

Chris C(Posted 2006) [#1]
I'm sending bool values from max as ints at the moment

void sow_part_setEnabled(ParticleSystem* pSys,int e){
pSys->getEmitter(0)->setEnabled(e);
}

I get a compiler warning
.\sow.cpp(508) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)

is there a better way?

also max is missing some unsigned native types what do people do about that?

ie theres
8 bit unsigned but not signed
16 bit unsigned
32 bit signed but not unsigned
64 bit signed


ImaginaryHuman(Posted 2006) [#2]
Do your own bit manipulations if you need any other types.


N(Posted 2006) [#3]
Use a byte.