summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-01 19:29:15 +0100
committerAndreas Ericsson <ae@op5.se>2010-06-02 11:18:55 +0200
commit5440906feb5e41241a699ee413475b7911284c41 (patch)
tree789527fb457255cc90b2b79dab55b67023c7b8d2 /src/commit.c
parent8a7d625f53726fc7703dc0a413686d1ec15488e0 (diff)
downloadlibgit2-5440906feb5e41241a699ee413475b7911284c41.tar.gz
msvc: Fix some compiler warnings
In particular, the compiler issues the following warnings: src/revobject.c(29) : warning C4305: 'initializing' : truncation \ from 'double' to 'const float' src/revobject.c(56) : warning C4244: '=' : conversion from \ 'const float' to 'unsigned int', possible loss of data src/revobject.c(149) : warning C4244: '=' : conversion from \ 'const float' to 'unsigned int', possible loss of data In order to suppress the warnings we change the type of max_load_factor to double, rather than change the initialiser to 0.65f, and cast the result type of the expressions to 'unsigned int' as expected by the assignment operators. Note that double should be able to represent all unsigned int values without loss. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions