summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-12-01 15:10:27 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-12-01 15:10:27 +0000
commita8c9be4fec6ba764de82a05604aa21189fbfeda5 (patch)
tree0b569a5005c947056abb74244d6fc48057c42535 /sal/rtl
parent69eeb2a2ef85ba08730038051817d701d4680a8c (diff)
INTEGRATION: CWS ooo20031110 (1.1.150); FILE MERGED
2003/11/15 12:23:12 waratah 1.1.150.1: #i22279# Implement macro for long constants, and also use that macro for big numbers.
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/uuid.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/rtl/source/uuid.cxx b/sal/rtl/source/uuid.cxx
index aea4dbee8..ef3babe40 100644
--- a/sal/rtl/source/uuid.cxx
+++ b/sal/rtl/source/uuid.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: uuid.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2003-11-25 10:45:49 $
+ * last change: $Author: rt $ $Date: 2003-12-01 16:10:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -130,7 +130,7 @@ static sal_uInt64 getGregorianTime()
nTime = ((sal_uInt64) val.Seconds) *((sal_uInt64)10000000) +
((sal_uInt64) val.Nanosec) /100 +
- (sal_uInt64)(0x01B21DD213814000);
+ (sal_uInt64)SAL_CONST_UINT64(0x01B21DD213814000);
return nTime;
}
@@ -254,7 +254,7 @@ static void retrieve_v1( const sal_uInt8 *pPredecessorUUID,
((sal_uInt16) uuid.clock_seq_low );
memcpy( pNode, &( uuid.node ) , 6 );
- *pTime = *pTime & 0x0fffffffffffffff;
+ *pTime = *pTime & SAL_CONST_UINT64(0x0fffffffffffffff);
*pClockSeq = *pClockSeq & 0x3fff;
}
@@ -267,7 +267,7 @@ static void write_v1( sal_uInt8 *pTargetUUID,
UUID uuid;
/* 1
0123456789012345 */
- nTime = ( nTime & 0x0fffffffffffffff ) | 0x1000000000000000;
+ nTime = ( nTime & SAL_CONST_UINT64(0x0fffffffffffffff)) | SAL_CONST_UINT64(0x1000000000000000);
nClockSeq = ( nClockSeq & 0x3fff ) | 0x8000;
uuid.time_low = (sal_uInt32) ( nTime & 0xffffffff );