 |
Changeset 2743
- Timestamp:
- 11/02/07 23:40:06
(1 year ago)
- Author:
- kris
- Message:
fixes #686 :: Formatting causes access violation when trying to format a null class reference
(Thanks Jarrett)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2652 |
r2743 |
|
| 493 | 493 | |
|---|
| 494 | 494 | case TypeCode.CLASS: |
|---|
| 495 | | return fromUtf8 ((*cast(Object*) p).toUtf8, result); |
|---|
| | 495 | static T[] Null = "{null}"; |
|---|
| | 496 | auto c = *cast(Object*) p; |
|---|
| | 497 | return c ? fromUtf8 (c.toUtf8, result) : Null; |
|---|
| 496 | 498 | |
|---|
| 497 | 499 | case TypeCode.ENUM: |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic