harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject [drlvm] why not use a defined constant for max int?
Date Mon, 16 Oct 2006 21:23:25 GMT
When reviewing HARMONY-1672, there are bits like

    res.i = (int32)2147483647;

(not part of the patch, but surrounding code...)

What is the downside for using INT32_MAX or something portable and 
appropriate?  Wouldnt' that make the code more readable?

geir



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message