You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/04/03 07:07:19 UTC

[GitHub] [incubator-nuttx] raiden00pl opened a new pull request #702: tools/nxstyle.c: handle scientific notation with a negative exponent

raiden00pl opened a new pull request #702: tools/nxstyle.c: handle scientific notation with a negative exponent
URL: https://github.com/apache/incubator-nuttx/pull/702
 
 
   Tested with the folowing code:
   
   ```
   int test(void)
   {
     /* [OK] OK */
   
     int i = 10e12;
     int i = 10E12;
     int j = 10e-1;
     int j = 10E-1;
     int e = 9e-10;
     int e = 9E-10;
   
     /* [OK] FAIL */
   
     k = e-j;
     k = E-j;
   
     /* [OK] FAIL */
   
     e = ee-eee;
     e = EE-EEE;
   
     /* [FALSE POSITIVE] OK but should FAIL  */
   
     a = abc1e-10;
     a = ABC1E-10;
   
     /* [OK] FAIL */
   
     j = e-10;
     j = E-10;
   
     /* [OK] FAIL */
   
     j = 10-e;
     j = 10-E;
   
     /* [OK] OK */
   
     e = ee - eee;
     E = EE - EEE;
   
     /* [OK] OK */
   
     j = e - 10;
     j = E - 10;
   
     /* [OK] OK */
   
     i = e - j;
     i = E - j;
   
     /* [OK] OK */
   
     k = 10e-1;
     k = 10E-1;
   
     /* [OK] OK */
   
     k = 23e12;
     k = 23E12;
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] patacongo merged pull request #702: tools/nxstyle.c: handle scientific notation with a negative exponent

Posted by GitBox <gi...@apache.org>.
patacongo merged pull request #702: tools/nxstyle.c: handle scientific notation with a negative exponent
URL: https://github.com/apache/incubator-nuttx/pull/702
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services