Skip to content

Commit

Permalink
Addition of L specifier to indicate a 64-bit float constant to prevent
Browse files Browse the repository at this point in the history
compiler errors indicating floating-point overflow. Thanks to @hb--.

This references issue #1.
  • Loading branch information
tesneddon committed Mar 30, 2013
1 parent 4c24b97 commit 8cbd9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ int sqlite3AtoF(const char *z, double *pResult, int length, u8 enc){
if( esign<0 ){
result = 0.0*s;
}else{
result = 1e308*1e308*s; /* Infinity */
result = 1e308L*1e308L*s; /* Infinity */
}
}else{
/* 1.0e+22 is the largest power of 10 than can be
Expand Down

0 comments on commit 8cbd9c4

Please sign in to comment.