summaryrefslogtreecommitdiffstats
path: root/lasso/saml-2.0/provider.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 21:23:30 +0200
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2013-09-08 21:33:58 +0200
commit05a01a824715de7e8e5d3d65b73e8fc855e5dad9 (patch)
treea5979b4c36219198bf5f4934494273ee819b416f /lasso/saml-2.0/provider.c
parentb6faccae0fabfd7e47fc6b86a06fc78367446526 (diff)
downloadlasso-05a01a824715de7e8e5d3d65b73e8fc855e5dad9.tar.gz
lasso-05a01a824715de7e8e5d3d65b73e8fc855e5dad9.tar.xz
lasso-05a01a824715de7e8e5d3d65b73e8fc855e5dad9.zip
fix compilation errors on 64bits architectures
* sizeof(unsigned int) != sizeof(size_t) * INT_MAX != LONG_MAX
Diffstat (limited to 'lasso/saml-2.0/provider.c')
-rw-r--r--lasso/saml-2.0/provider.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lasso/saml-2.0/provider.c b/lasso/saml-2.0/provider.c
index a66ba9f2..f86eb8f1 100644
--- a/lasso/saml-2.0/provider.c
+++ b/lasso/saml-2.0/provider.c
@@ -153,7 +153,7 @@ xsdUnsignedShortParse(xmlChar *value, int *out) {
errno = 0;
l = strtol((char*)value, NULL, 10);
- if (((l == LONG_MIN || l == LONG_MAX) && errno == ERANGE) ||
+ if (((l == INT_MIN || l == INT_MAX) && errno == ERANGE) ||
errno == EINVAL || l < 0 || l >= 65535) {
return FALSE;
}