Commit bf2e3f39 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix switch lowerer for cases close to overflow.

[r23374]
parent 611bbabe
......@@ -99,7 +99,7 @@ static int casecmp(const void *a, const void *b)
{
const case_data_t *cda = a;
const case_data_t *cdb = b;
return cda->value - cdb->value;
return (cda->value > cdb->value) - (cda->value < cdb->value);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment