2003-01-26
2003-01-26 22:10:00 by Mirar (Pontus Hagland) <pike@sort.mirar.org>
-
cf84383c58ddd4c0f2e895747f2809be5f36eccd
(7 lines)
(+5/-2)
[
Show
| Annotate
]
Branch: 7.9
(large INT_TYPE saga) F_NUMBER64 edited to handle negative numbers correctly
Rev: src/docode.c:1.162
Rev: src/interpret_functions.h:1.131
2:
|| This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information.
- || $Id: interpret_functions.h,v 1.130 2003/01/26 21:11:23 mirar Exp $
+ || $Id: interpret_functions.h,v 1.131 2003/01/26 22:10:00 mirar Exp $
*/
/*
228: Inside #if SIZEOF_INT_TYPE > 4
/* always need to declare this opcode to make working dists */
#if SIZEOF_INT_TYPE > 4
OPCODE2(F_NUMBER64, "push 64-bit int", 0, {
- push_int((((INT_TYPE)arg1)<<32)|((unsigned INT32)arg2));
+ push_int( (INT_TYPE)
+ (( ((unsigned INT_TYPE)arg1) << 32)
+ | ((unsigned INT32)arg2)) );
});
#else
OPCODE2(F_NUMBER64, "push 64-bit int", 0, {