From 61d4f8be6080d1793040c94b431bd4529e8c6aac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Mon, 17 Aug 2009 20:42:39 +0200 Subject: [PATCH] s4: int32 handling: previous fix was not fully correct --- source4/dsdb/schema/schema_syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c index 6159ab48b1a1..2f14e3c472ba 100644 --- a/source4/dsdb/schema/schema_syntax.c +++ b/source4/dsdb/schema/schema_syntax.c @@ -236,7 +236,7 @@ static WERROR dsdb_syntax_INT32_ldb_to_drsuapi(struct ldb_context *ldb, /* We've to use "strtoll" here to have the intended overflows. * Otherwise we may get "LONG_MAX" and the conversion is wrong. */ - v = strtoll((const char *)in->values[i].data, NULL, 0); + v = (int32_t) strtoll((char *)in->values[i].data, NULL, 0); SIVALS(blobs[i].data, 0, v); } -- 2.34.1