Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tempCString() to follow strict scope rules #4746

Merged
merged 1 commit into from Aug 24, 2016

Conversation

WalterBright
Copy link
Member

The idea is not to conflate pointers-to-stack with pointers-to-heap, otherwise the compiler gets concerned that the former escapes.

This is blocking dlang/dmd#5972

As this is a blocker, please don't delay reviewing/pulling it.

@dlang-bot
Copy link
Contributor

@WalterBright, thanks for your PR! By analyzing the annotation information on this pull request, we identified @denis-sh, @wilzbach and @9rnsr to be potential reviewers. @denis-sh: The PR was automatically assigned to you, please reassign it if you were identified mistakenly.

(The DLang Bot is under development. If you experience any issues, please open an issue at its repo.)

@codecov-io
Copy link

codecov-io commented Aug 24, 2016

Current coverage is 88.78% (diff: 92.85%)

Merging #4746 into master will decrease coverage by <.01%

@@             master      #4746   diff @@
==========================================
  Files           121        121          
  Lines         74159      74156     -3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          65844      65841     -3   
  Misses         8315       8315          
  Partials          0          0          

Powered by Codecov. Last update f6167ab...9c5401c

if (!ptr)
onOutOfMemoryError();
memcpy(ptr, res.ptr, i * To.sizeof);
return ptr[0 .. newlen];
}
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This else is now redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants