diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/func.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c index 385582923..c66ad28ab 100644 --- a/src/func.c +++ b/src/func.c @@ -416,7 +416,7 @@ static void randomFunc( ** 2s complement of that positive value. The end result can ** therefore be no less than -9223372036854775807. */ - r = -(r ^ (((sqlite3_uint64)1)<<63)); + r = -(r & LARGEST_INT64); } sqlite3_result_int64(context, r); } |