projects
/
gssweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
505a502
)
Fix integer precision warnings
author
Kevin Wasserman
<krwasserman@hotmail.com>
Tue, 25 Nov 2014 18:05:16 +0000
(13:05 -0500)
committer
Kevin Wasserman
<krwasserman@hotmail.com>
Tue, 25 Nov 2014 18:05:16 +0000
(13:05 -0500)
json_gssapi/src/commands/GSSAcquireCred.cpp
patch
|
blob
|
history
json_gssapi/src/commands/GSSInitSecContext.cpp
patch
|
blob
|
history
json_gssapi/src/commands/GSSPseudoRandom.cpp
patch
|
blob
|
history
diff --git
a/json_gssapi/src/commands/GSSAcquireCred.cpp
b/json_gssapi/src/commands/GSSAcquireCred.cpp
index
0b43de8
..
c80db63
100644
(file)
--- a/
json_gssapi/src/commands/GSSAcquireCred.cpp
+++ b/
json_gssapi/src/commands/GSSAcquireCred.cpp
@@
-82,7
+82,7
@@
bool GSSAcquireCred::loadParameters(JSONObject *params)
/* Main processing */
// Easy stuff(*params)
/* Main processing */
// Easy stuff(*params)
- this->time_req = (*params)["time_req"].integer();
+ this->time_req = (
OM_uint32 )(
*params)["time_req"].integer();
/**************
* cred_usage *
/**************
* cred_usage *
diff --git
a/json_gssapi/src/commands/GSSInitSecContext.cpp
b/json_gssapi/src/commands/GSSInitSecContext.cpp
index
c2c93c7
..
0df10ed
100644
(file)
--- a/
json_gssapi/src/commands/GSSInitSecContext.cpp
+++ b/
json_gssapi/src/commands/GSSInitSecContext.cpp
@@
-207,11
+207,11
@@
bool GSSInitSecContext::loadParameters(JSONObject *params)
// req_flags
if (!params->get("req_flags").isNull() )
// req_flags
if (!params->get("req_flags").isNull() )
- this->req_flags = params->get("req_flags").integer();
+ this->req_flags =
(OM_uint32 )
params->get("req_flags").integer();
// time_req
if (!params->get("time_req").isNull() )
// time_req
if (!params->get("time_req").isNull() )
- this->time_req = params->get("time_req").integer();
+ this->time_req =
(OM_uint32 )
params->get("time_req").integer();
// input_token
if (! (params->get("input_token").isNull() ||
// input_token
if (! (params->get("input_token").isNull() ||
diff --git
a/json_gssapi/src/commands/GSSPseudoRandom.cpp
b/json_gssapi/src/commands/GSSPseudoRandom.cpp
index
f9c41e3
..
b73dc95
100644
(file)
--- a/
json_gssapi/src/commands/GSSPseudoRandom.cpp
+++ b/
json_gssapi/src/commands/GSSPseudoRandom.cpp
@@
-77,7
+77,7
@@
bool GSSPseudoRandom::loadParameters ( JSONObject* params )
if ( ! params->get("prf_key").isNull() )
{
if (params->get("prf_key").isInteger())
if ( ! params->get("prf_key").isNull() )
{
if (params->get("prf_key").isInteger())
- this->key = params->get("prf_key").integer();
+ this->key =
(int )
params->get("prf_key").integer();
else
throw std::invalid_argument( "Unrecognized argument type for prf_key." );
}
else
throw std::invalid_argument( "Unrecognized argument type for prf_key." );
}
@@
-89,7
+89,7
@@
bool GSSPseudoRandom::loadParameters ( JSONObject* params )
if ( ! params->get("desired_output_len").isNull() )
{
if (params->get("desired_output_len").isInteger())
if ( ! params->get("desired_output_len").isNull() )
{
if (params->get("desired_output_len").isInteger())
- this->desiredOutputLength = params->get("desired_output_len").integer();
+ this->desiredOutputLength =
(int )
params->get("desired_output_len").integer();
else
throw std::invalid_argument( "Unrecognized argument type for desired_output_len." );
}
else
throw std::invalid_argument( "Unrecognized argument type for desired_output_len." );
}