Closed Bug 395678 Opened 17 years ago Closed 17 years ago

Fix const issues with strchr in C++

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

With MSVC, strchr returns a "const char*"... and when compiling spidermonkey in C++, you would have to explicitly cast away the const to assign the result to a char*. But that's not necessary, because the two instances we have currently we can just make the relevant local a const char*.
Attachment #280348 - Flags: review?(mrbkap)
Attachment #280348 - Flags: review?(mrbkap) → review+
Attachment #280348 - Flags: approval1.9?
Comment on attachment 280348 [details] [diff] [review]
Fix mozilla-central on Windows, rev. 1

a=me.

/be
Attachment #280348 - Flags: approval1.9? → approval1.9+
Fixed on CVS trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: