From a6f63a9257ce4d95a8834057913bf825819bf9d3 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 5 May 2017 17:17:14 +0200 Subject: [PATCH] sign of a number -> sign of a number constant --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index f830cae..12f7015 100644 --- a/index.html +++ b/index.html @@ -421,7 +421,7 @@ but this will cause an error:

Signs

-

The sign at the beginning of a number (except in globals) takes up one byte of code, unless prefixed by a type cast (which does not, under Mono, take up code memory by itself if the destination type is the same). Small saving, but it adds up to the overall. Numbers are thus output with a type cast and surrounded by parentheses, e.g. ((float)-1.5) instead of -1.5.

+

The sign at the beginning of a number constant (except in globals) takes up one byte of code, unless prefixed by a type cast (which does not, under Mono, take up code memory by itself if the destination type is the same). Small saving, but it adds up to the overall. Numbers are thus output with a type cast and surrounded by parentheses, e.g. ((float)-1.5) instead of -1.5.

String constant folding