Commit a0a0b23e55e974595ee4d6ffaf10e4664f491c6d

Authored by Arnaud Blanchard
1 parent 1b3fd663

Manage more types

Showing 1 changed file with 4 additions and 0 deletions
... ... @@ -61,6 +61,10 @@ int main(int argc, char *argv[]){
else switch (input.type){
case 'UIN8':max=UINT8_MAX;break;
case 'INT8':max=INT8_MAX;break;
case 'UI16':max=UINT16_MAX;break;
case 'IN16':max=INT16_MAX;break;
case 'UI32':max=UINT32_MAX;break;
case 'IN32':max=INT32_MAX;break;
case 'FL32': case 'FL64':max=1.0;break;
default: EXIT_ON_CHANNEL_ERROR(&input, "No default max value");
}
... ...