View Issue Details

IDProjectCategoryView StatusLast Update
0000630LDMud 3.3LPC Compiler/Preprocessorpublic2018-01-29 22:57
ReporterGnomi Assigned ToGnomi  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformi686OSDebian GNU/LinuxOS Version4.0
Product Version3.3.718 
Target Version3.3.719Fixed in Version3.3.719 
Summary0000630: Imperfect overflow detection
DescriptionWhen numeric literals exceed __INT_MAX__ there's usually a warning "Number exceeds numeric limits" and __INT_MAX__ is returned.

This fails for numbers between __INT_MAX__+1 and 2*__INT_MAX__ (and slightly above until the next multiple of 10).

The same applies to to_int.
TagsNo tags attached.

Activities

Gnomi

2009-05-04 18:26

manager   ~0001078

Fixed in r2561.

fufu

2009-05-10 09:52

manager   ~0001090

We'll have to revisit this. Now

   return __INT_MIN__

gives a warning. So does the NAME_INHERITED define from function_list.h (on 32 bit platform)

fufu

2009-05-10 13:13

manager   ~0001094

Fixed the latter in r2580.

Issue History

Date Modified Username Field Change
2009-04-21 05:43 Gnomi New Issue
2009-04-21 05:43 Gnomi Status new => assigned
2009-04-21 05:43 Gnomi Assigned To => Gnomi
2009-05-04 18:26 Gnomi Note Added: 0001078
2009-05-04 18:26 Gnomi Status assigned => resolved
2009-05-04 18:26 Gnomi Fixed in Version => 3.3.719
2009-05-04 18:26 Gnomi Resolution open => fixed
2009-05-10 09:52 fufu Note Added: 0001090
2009-05-10 13:13 fufu Note Added: 0001094
2010-11-16 10:42 Gnomi Source_changeset_attached => ldmud.git master d78d5163
2018-01-29 19:59 Gnomi Source_changeset_attached => ldmud.git master d78d5163
2018-01-29 22:57 Gnomi Source_changeset_attached => ldmud.git master d78d5163